Generate a timeline that can represent, for example, sequential or overlapping events in a person’s life
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<-list() x[]<-list() x[]$name<-"500 First Street" x[]$start<-1990 x[]$end<-2010 x[]$color<-"blue" x[]$pics<-list() x[]$pics<-system.file("extdata/images/mockup/","house_amp029030.jpg",package="timeLineGraphics")
The user manually prepares the components like x[], and wraps them up in a function, for example, example2(), that returns the entire list x containing components similar to x[].
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: