plot.nfd | R Documentation |
Plot nfd objects (including crss_nf and crssi objects) for a single
site. Plotting these
objects are meant to give a cursory look at the underlying data. For more
complex statistics see nfd_stats()
.
## S3 method for class 'nfd'
plot(
x,
trace = -1,
site = 1,
flow_space = "both",
time_step = "both",
base_units = NULL,
which = "box",
show = TRUE,
...
)
x |
An object inheriting from nfd. |
trace |
The trace(s) to use as a numeric vector. If |
site |
The site to plot as a scalar numeric or character. Should be a site number, or a site name. |
flow_space |
The flow space to plot. "both", "intervening", or "total". |
time_step |
The time step of data to plot. "both", "annual", or "monthly". |
base_units |
The units of the data. Used for the y-axis label. |
which |
The type of plot to create. Can be multiple plot types, but must be "box", "cloud", "spaghetti", or some combination of these three types. Can also specify numerically as 1, 2, and 3, respectively. See the Annual plots and Monthly plots sections for details. |
show |
Boolean. Should the plots be shown if in interactive mode. If
|
... |
Other parameters not used by this method. |
nfdplot
object. See print.nfdplot()
, save_nfdplot()
.
Annual plots include boxplots, cloud plots, and spaghetti plots; each plot shows the annual values across multiple traces through time. Box and cloud plots use the 5th, 25th, 75th, and 95th percentiles as box and whiskers (in the box plot) and as the different shaded regions (in the cloud plot). The spaghetti plots show every single trace as a line plot.
Monthly plots only include boxplots by month. These boxplots aggregate data for all months and all traces. The months are ordered from January - December if the underlying object has a calendar year (cy) year attribute, and October - September if it has a water year (wy) year attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.