Generate a timeline that can represent, for example, sequential or overlapping events in a person's life

Henry's Life{width=70%}

Additional examples at higher resolution can be found at Correlations between dutch artists and mathematicians and Henry's life

Events of the same type can be color coded, and representative images can be associated with each event. The picture is positioned within the event strip if it fits, otherwise it can optionally be positioned to the left of the event strip.

The graphic is generated as .pdf, .png, and .html formats.

The basic data structure is a list containing the relevant information for each event:


    x[[1]]$name<-"500 First Street"

The user manually prepares the components like x[[1]], and wraps them up in a function, for example, example2(), that returns the entire list x containing components similar to x[[1]].

The function stripPlot() iteratively plots each event. The function timeLineGraphics() is the driver for the overall process, and assigns reasonable default values for a substantial number of user-defined parameters that fine tune the colors, dimensions, etc.

The process that generated the figure in the hyperlink above was invoked by:

timeLineGraphics(example2(),pdfHeight=10,yearsTick=5,nameCEX=3,main="Henry's Life")

  collapse = TRUE,
  comment = "#>"

Try the timeLineGraphics package in your browser

Any scripts or data that you put into this service are public.

timeLineGraphics documentation built on Jan. 11, 2023, 5:09 p.m.