View source: R/twoway_lineplot.R
Two way lineplot with variable(s) of interest over time period. twoway_lineplot() simply creates a lineplot of a variable progression over chosen time period. twoway_lineplotf() facets by a variable so that the objective variable is isolated for observation in each characteristic.
1 2 | twoway_lineplot(data, date, yname, xlabel, ylabel, ymean, ymlabel, guidecolor)
twoway_lineplotf(data, xname, yname, bycolor, bywrap, xlabel, ylabel)
|
data |
Dataset to use for plot, must be in data.frame to plot. |
date |
Date or time period considered, has to be in format of "month/date/year" |
xname |
Consists of x variable of interest. |
yname |
Consists of y variable of interest. |
bywrap |
Chosen variable to facet by in order to display by each characteristic |
bycolor |
Chosen variable for different lines within facet's characteristics (recommend objective variable) |
xlabel |
Name for x axis labels. |
ylabel |
Name for y axis labels. |
ymean |
Mean of the y variable of interest. |
ymlabel |
Name for mean of y variable label. |
guidecolor |
Title of Legend |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.