Description Usage Arguments Value Examples
View source: R/LineChart-functions.R
This function is the primary way to provide settings for the groups used in plotting. You need to provide the indentifiers for each group and the various settings to be used for that group. All settings are optional and will be set with reasonable defaults if not specified.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
group |
The indentifiers for the groups. |
groupLabel |
An alternative name to use in legends, instead of 'group'. If provided and some values are NA, those values will be replaced with the group name. |
color |
The color to be used for the symbols and lines. |
fillColor |
The fill color to be used in case the symbols are of a fillable type (e.g. 21:25). |
symbol |
The plotting character to use. |
cex.symbol |
The character expansion for the plotting symbols. |
width.errBar |
The width of the heads of the error bars (if present). |
lty |
The line type. |
lwd |
The line width. |
include |
Boolean. Should this group be included in plots? |
suppressWarnings |
Boolean. By default you are warned about which settings are left at default values. Set to TRUE to suppress these warnings. |
A data frame containing appearance setting data that can be used with lineChart for the settings argument.
1 2 3 4 5 | library(LineChart)
data(ChickWeight)
settings = buildGroupSettings(group=1:4, symbol=21:24, color=c("red", "green", "orange", "blue"))
lineChart( weight ~ Time * Diet, ChickWeight, settings = settings, legendPosition="topleft" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.