Usage
timelineS(df, main = NA, xlab = NA, buffer.days = 600, line.width = 5, line.color = "gray44", scale = "year", scale.format = "%Y", scale.font = 2, scale.orient = 1, scale.above = FALSE, scale.cex = 1, scale.tickwidth = 2, labels = paste(df[[1]], df[[2]]), label.direction = "downup", label.length = c(0.5,0.5,0.8,0.8), label.position = c(1,3), label.color = "gray44", label.cex = 0.8, label.font = 1, label.angle = 0, pch = 20, point.cex = 1, point.color = "gray44")
Arguments
df
Data frame for events and dates. First column for event names and second column for dates in Date
class.
buffer.days
Additional days to add before and after the event dates on the timeline. Default is 600 days.
line.width
Timeline width; default 5
line.color
Timeline color.
scale
Scale on timeline. One of "year","quarter", "month", "week" or "day"
. See seq.Date
. scale.format
Scale format; default "%Y"
.
scale.font
Integer specifying font of scale. Default is 2. (1:plain, 2:bold, 3:italic, 4:bold italic, 5:symbol).
scale.orient
Orientation of scale; default 1(upright)
scale.above
If TRUE
, the scale shows above the line.
scale.cex
Scale font size relative to cex.
scale.tickwidth
Width of scale tick; default 2.
labels
Event labels. Events and corresponding dates as default.
label.direction
Direction of labels from timeline. "downup","updown","up", or "down"
, default is "downup"
. See details.
label.length
Distance of event label from the timeline. Could be a single value or a vector of lengths.
Default is c(0.5, 0.5, 0.8, 0.8). See details.
label.position
Integer specifying label positions; default c(1,3). See details.
label.color
Label color(s).
label.cex
Font size(s) of event labels; default 0.8.
label.font
Integer specifying label font; default 1.
label.angle
Angle of text in the label.
point.cex
End points size(s).
point.color
End points color(s).