Description Usage Arguments Details Examples
Create sparkline object by extracting from a data frame
1 |
df |
data.frame from which data for the sparkline is extracted |
id.var |
variable in df with IDs |
ID |
value in id.var on which to extract |
yvar |
name of variable for the y values in the sparkline |
xvar |
optional name of variable for horizontal axis of sparkline plots |
Creates an object with info for a single sparkline by extracting from a data.frame. The function works on data.frames with one column of ID variables and possibly several columns of other variables. The main use is as a helper function for building up a sparklineTable.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.