graphCurvesCombine | R Documentation |
to generate a ggplot object (actually a list(ggplot object) ) which combines the data of a number of tables
graphCurvesCombine(
tables,
x,
y,
lineWidth = 0.5,
xLimits = NA,
yPercentage = FALSE,
combine = NA,
colors = "black"
)
tables |
list of data.frames from which to generate the graphs Note: MUST be a list |
x |
character vector defining which column from the data.frames to use for the x-axis |
y |
character vector defining which column from the data.frames to use for the y-axis |
lineWidth |
defines the width of the lines in the graphs drawn from the x,y coordinates |
xLimits |
defines the range x coordinates c(minimum, maximum), all coordinates outsude this range are not drawn |
yPercentage |
defines if y-axis maximum should be set to 100 percent |
combine |
if NA then all tables are combined into one, otherwise it has to be a integer vector defining which tables from the 'tables' list to combine eg c(1,2,4) |
colors |
character vector describing the colors to be used. If a single color (default = "black") then all curves will be the same color, otherwise must be character vector of same length as the combine vector |
a list of ggplot objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.