Create graph of historical data.

historicalPlot(data, mapping, facet_formula, line_types)

Arguments

data

a data frame containing data to be plotted.

mapping

the argument to the geom_line function. Use for setting, x, y, color, among other things: mapping=aes(x=scale, y=lambda, color=country)

facet_formula

a formula of the form y ~ x where y is the varible to facet in the y direction and x is the variable to facet in the x direction.

line_types

is a vector of linetype identifiers to be applied as the line types for the groups.

Details

This function returns a figure with facets specified by facet_formula and various lines specified by line_formula. You may have to use the package reshape2 to "melt" your data to the correct form before passing it to this function.