View source: R/fPlot_GroupedLine_Single.R
This simple ggplot function takes the name of an x-axis column and a y-axis column and plots a line chart, with different grouping variables represented as unique factor colors. Function is primarily used to create composite charts while keeping the theme choices consistent.
1 | fPlot_GroupedLine_Single(dat, xcol, ycol, group)
|
dat |
a dataframe containing your 'x' and 'y' variables of interest |
xcol |
a character object specifying the column name of the x-axis variable (e.g. doy) |
ycol |
a character object specifying the column name of the x-axis variable |
group |
a character object specifying the column name of the grouping variable (e.g. year) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.