View source: R/simpleRibbonPlot.R
simpleRibbonPlot | R Documentation |
Creates ggplot2 ribbon plots of the daily minimum, maximum and mean values for all selected variables over a year, for models without sub-basins. The shaded area indicates the range of values in the data frame for each day.
simpleRibbonPlot(
CRHMoutput,
columns = "all",
waterYear = FALSE,
ylabel = "Basin total (mm)",
skipLeapDay = TRUE,
facet = FALSE,
facetColour = "blue",
facetCols = 3
)
CRHMoutput |
Required. A data frame containing either instantaneous or cumulative values. The data may be either daily or hourly. |
columns |
The columns to be aggregated, not including the datetime. The default is the all, but can be a vector, i.e. c(1,2,3). Note that all variables must have the same units. |
waterYear |
Optional. If |
ylabel |
Optional. Label to be used for the y-axis. |
skipLeapDay |
Optional. If |
facet |
Optional. If |
facetColour |
Optional. The colour to be used for shading the ribbon plot in each facet, if selected. |
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
cumulDailyWater
## Not run:
p <- ribbonPlot(waterYearCumul, waterYear=TRUE, units='mm', facet=TRUE, facetCols=2
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.