Plot a Gantt chart based on a list x
of lists of data.
The list contains one list for each machine. Each machine list, in turn, is
a list of lists, too. Each of their elements has the form list(job=,
start=, end=)
, with elements denoting the job ID, start, and end time,
respectively.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | aitoa.plot.gantt(
x,
machine.name.func = as.character,
job.colors = NA_character_,
print.job.names = TRUE,
force.job.names = FALSE,
job.name.func = as.character,
job.name.cex = .gantt.default.job.name.cex,
xlab = NA_character_,
ylab = NA_character_,
time.max = NA_integer_,
instance.limit = NA_integer_,
instance.limit.name = NA_character_,
instance.limit.cex = .instance.limit.cex,
instance.limit.color = .instance.limit.color,
instance.limit.lty = .instance.limit.lty,
instance.limit.lwd = .instance.limit.lwd,
instance.limit.adj = .gantt.default.instance.limit.adj,
center.label = NA_character_,
center.label.cex = .gantt.label.cex,
center.label.bg = .gantt.label.bg,
las = 1L,
xaxs = "i",
yaxs = "i",
mgp = .default.mgp,
tck = .default.tck,
cex = .default.cex,
mar = if ((is.null(xlab) || is.na(xlab)) && (is.null(ylab) || is.na(ylab)))
.default.mar.without.labels else NULL,
...
)
|
x |
the data to be plotted |
machine.name.func |
a function converting a machine index into a
character string with the machine name. The first machine index is
|
job.colors |
an optional vector of job colors |
print.job.names |
should the job names be printed into the job rectangles? |
force.job.names |
if |
job.name.func |
a function converting a job index into a character
string, only used if |
job.name.cex |
the scaling for job names, only considered if
|
xlab |
the label for the x-axis |
ylab |
the label for the y-axis |
time.max |
an optional maximal time value |
instance.limit |
an opional quality limit to be plotted as horizontal line |
instance.limit.name |
the optional name of the quality limit, |
instance.limit.cex |
the font scaling for the instance limit annotation
(only if |
instance.limit.color |
the color for the instance limit line |
instance.limit.lty |
the line type for the instance limit line |
instance.limit.lwd |
the line width for the instance limit line |
instance.limit.adj |
the adjustment for the instance limit annotation
(only if |
center.label |
an optional label to be plotted in the lower center |
center.label.cex |
the font size multiplier for the label |
center.label.bg |
the background for the label |
las |
the axis label oriantation (this is the default to be passed to plot, better don't change) |
xaxs |
the x-axis interval type (this is the default to be passed to plot, better don't change) |
yaxs |
the y-axis interval type (this is the default to be passed to plot, better don't change) |
mgp |
the mgp parameter to be passed to plot |
tck |
the tck parameter to be passed to plot |
cex |
the default character scaling |
mar |
the default margins |
... |
parameters to be passed to plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.