Description Usage Arguments Details See Also Examples
Plot the amount of rainfall (mm) through time, with optional available soil water capacity and runoff amounts (if applicable).
1 2 3 4 5 6 7 8 9 10 |
x |
a |
y |
missing. |
include_runoff |
a logical indicating whether to plot the soil moisture
deficit and runoff as well as the rainfall, if the data
is available (default |
ggtheme |
character string (partially) matching the
|
scales |
character string partially matching the |
n_col |
the number of columns of plots (default 1). |
... |
further arguments passed to |
When there is a rain event, the amount of runoff, if any, is dependent on how
much capacity the soil has available for more water. If there is no available
water capacity left in the soil then more rain will lead to a runoff event.
If include_runoff = TRUE
, the available water capacity is plotted as
negative values and the runoff as positive values to signify this negative
relationship.
plot,cfDataList,missing-method
for general
information on default plotting of cfData
and cfDataList
objects, and the links within. See cf_query
for creating
cfRain
objects.
Refer to theme
for more possible arguments to pass
to these methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# Retrieve public rain data for a month from CliFlo (at Reefton Ews station)
reefton_rain = cf_query(cf_user(), cf_datatype(3, 1, 1), cf_station(),
start_date = "2012-08-01-00",
end_date = "2012-09-01-00")
class(reefton_rain) # cfRain object
# Plot the rain data using the defaults
plot(reefton_rain)
# Change the ggtheme and enlarge the text
library(ggplot2) # for element_text()
plot(reefton_rain, ggtheme = "bw", text = element_text(size = 16))
# Save the plot as a png to the current working directory
library(ggplot2) # for ggsave()
ggsave("my_rain_plot.png")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.