aitoa.plot.gantt: Plot a Gantt Chart

Description Usage Arguments

View source: R/plot_gantt.R

Description

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.

Usage

 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,
  ...
)

Arguments

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 0L, the last one length(x) - 1L.

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 FALSE, then job names for sub-jobs which are simply to small to properly fit the string into are omitted, if TRUE they are printed anyway. This is only considered if print.job.names

job.name.func

a function converting a job index into a character string, only used if isTRUE(print.job.names), the job indices passed on depend on the indices present in x.

job.name.cex

the scaling for job names, only considered if isTRUE(print.job.names)

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, NA for omit

instance.limit.cex

the font scaling for the instance limit annotation (only if !is.na(instance.limit.name))

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 !is.na(instance.limit.name))

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


thomasWeise/aitoaEvaluate documentation built on Dec. 6, 2020, 1:22 p.m.