Gantt-like Diagram to plot Event's Time Extension
ganttPlotEvents(events, add = FALSE, y1 = 1, y2 = y1 + 1, xlim = NULL,
ylim = c(min(y1), max(y2)), col = "black", density = 5,
showLabels = TRUE, eventLabels = rownames(events), yLabel = (y1 + y2)/2,
type = "rectangle", title = "", leftMargin = 0.2, xlab = "Time",
cex = 0.8, indicate = NULL, indicationColour = "red",
bandheight = 0.1, alternating = FALSE, adj = 0.5, ...)
event list as retrieved by hsEvents
. Required
columns: tBeg (begin of event) and tEnd (end of event), both
of class POSIXt
if TRUE, the event boxes are added to the current plot, otherwise a new plot is generated
lower coordinates of the event boxes
upper coordinates of the event boxes
x limits. If NULL (default) the limits will be chosen so that all events fit into the plot
y limits
colour of shading lines
density of shading lines
if TRUE, the event boxes are labelled with the row names of the events
labels to be given to the events. Default: rownames(events)
y-position of labels, if labels are to be shown
one of c("rectange", "vertical")
title to be plotted left of event rectangles
left margin (where title is printed) as fraction of the range of the total time interval spanned by the events
x axis label
character expansion factor
indices of events to be indicated in a different color (indicationColuor)
colour to be used for indication, default: "red" extension factor for labels (event numbers)
passed to addLabels
passed to addLabels
passed to text
plotting the event labels
further arguments passed to rect or segments