View source: R/ribbonPlotAirTemps.R
ribbonPlotAirTemps | R Documentation |
Creates ggplot2 ribbon plots of the daily minimum, maximum and mean values of air temperatures over a year. The shaded area indicates the range of values in the data frame for each day.
ribbonPlotAirTemps(
obs = "",
obsNames = "",
tempCols = 1,
facet = TRUE,
facetColour = "",
facetCols = 2
)
obs |
Required. Either a CRHMr |
obsNames |
Optional. A vector containing names for the data frames. If there are more data frames than names, the data will be named |
tempCols |
Optional. Column(s) containing temperatures. Can be a single value or a vector. Values will be recycled if necessary. Default is |
facet |
Optional. If |
facetColour |
Optional. The colour to be used for shading the ribbon plot in each facet. If not specified (the default), then each plot will be coloured separately. |
facetCols |
Optional. The number of columns to be used for the facets, if selected. |
If unsuccessful, returns FALSE
. If successful, returns a ggplot2 object.
Kevin Shook
plotTempsByYear
p <- ribbonPlotAirTemps(BadLake7376, tempCols = 1, facet=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.