Description Usage Arguments Examples
Plot a Gantt chart based on a list x
of lists of data.
The list contains one list for each machine. The first machine at index
1
will be refered to as M0
, the second machine as M1
and so on. Each machine list, in turn, is a list of lists. Each element has
the form list(job=, start=, end=)
, with elements denoting the job
name, start, and end time, respectively.
1 2 3 4 5 | ## S3 method for class 'gantt'
plot(x, xlab = "Time", ylab = "Machine",
prefix.job = "J", prefix.machine = "M",
color.fun = colors.distinct, print.jobs = TRUE, las = 1L,
xaxs = "i", yaxs = "i", xrange = NULL, ...)
|
x |
the x list, a list of lists |
xlab |
the |
ylab |
the |
prefix.job |
the job name prefix |
prefix.machine |
the machine name prefix |
color.fun |
a function returning a color for a job |
print.jobs |
should we print the job ids? |
las |
the label orientation, see par |
xaxs |
the x-axis type, see par |
yaxs |
the y-axis type, see par |
xrange |
the range for the x-axis, |
... |
Arguments passed on to |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | library("plotteR");
plot.gantt(list(
list( list(job=11L,start=0L,end=68L),
list(job=0L,start=83L,end=155L),
list(job=8L,start=155L,end=194L),
list(job=14L,start=250L,end=297L),
list(job=1L,start=297L,end=320L),
list(job=9L,start=320L,end=340L)
),
list( list(job=3L,start=0L,end=68L),
list(job=2L,start=68L,end=118L),
list(job=12L,start=211L,end=271L)
),
list( list(job=14L,start=0L,end=24L),
list(job=13L,start=45L,end=137L),
list(job=6L,start=137L,end=228L),
list(job=4L,start=228L,end=262L)
),
list( list(job=2L,start=118L,end=211L),
list(job=1L,start=211L,end=254L),
list(job=11L,start=254L,end=314L)
),
list( list(job=8L,start=0L,end=35L),
list(job=13L,start=35L,end=45L),
list(job=3L,start=135L,end=234L),
list(job=0L,start=234L,end=264L),
list(job=2L,start=291L,end=308L)
),
list( list(job=14L,start=24L,end=53L),
list(job=13L,start=137L,end=160L),
list(job=2L,start=211L,end=291L)
),
list( list(job=1L,start=0L,end=19L),
list(job=6L,start=19L,end=90L),
list(job=0L,start=155L,end=229L),
list(job=3L,start=234L,end=294L),
list(job=13L,start=294L,end=340L)
),
list( list(job=0L,start=0L,end=8L),
list(job=4L,start=8L,end=92L),
list(job=3L,start=92L,end=135L),
list(job=7L,start=135L,end=225L),
list(job=10L,start=225L,end=324L)
),
list( list(job=5L,start=0L,end=60L),
list(job=7L,start=60L,end=122L),
list(job=1L,start=122L,end=195L),
list(job=14L,start=195L,end=250L),
list(job=6L,start=250L,end=315L)
),
list( list(job=0L,start=8L,end=83L),
list(job=14L,start=83L,end=132L),
list(job=12L,start=132L,end=211L),
list(job=9L,start=211L,end=269L),
list(job=8L,start=269L,end=343L)
)
), main="Gantt Chart", prefix.job="");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.