Compare commits
No commits in common. "1d44dabf587ca877a0972d255645c6d8b5d1d235" and "2ac43c0d2dcab3d05b9414e8223a7e402e279352" have entirely different histories.
1d44dabf58
...
2ac43c0d2d
1 changed files with 6 additions and 6 deletions
|
|
@ -61,11 +61,11 @@ series_col <- ncol(dt)
|
|||
n_phase <- nrow(dt)
|
||||
phase_axis <- seq_len(n_phase)
|
||||
phase_labels <- rownames(dt)
|
||||
series_center <- seq_len(series_col)
|
||||
max_ship_width <- 3.5
|
||||
ship_widths <- as.matrix(dt) / max(dt[, "Corrugated"]) * max_ship_width
|
||||
plot_left <- series_center[3] - max_ship_width / 2
|
||||
plot_right <- series_center[3] + max_ship_width / 2
|
||||
series_max <- apply(dt, 2, max)
|
||||
ship_gap <- max(dt) * 0.08
|
||||
series_left <- c(0, cumsum(series_max[-series_col] + ship_gap))
|
||||
series_center <- series_left + series_max / 2
|
||||
plot_right <- series_left[series_col] + series_max[series_col]
|
||||
|
||||
par(las = 1, bty = "n", mar = c(1, 7, 3, 1), xpd = NA)
|
||||
plot(
|
||||
|
|
@ -81,7 +81,7 @@ for (s in seq_len(series_col)) {
|
|||
for (r in phase_axis) {
|
||||
chip_bottom <- (n_phase - r) + 0.55
|
||||
chip_top <- (n_phase - r) + 1.45
|
||||
chip_width <- ship_widths[r, s]
|
||||
chip_width <- dt[r, s]
|
||||
|
||||
rect(
|
||||
series_center[s] - chip_width / 2,
|
||||
|
|
|
|||
Loading…
Reference in a new issue