obsplot | R Documentation |
Plot observed response variable and salinity/flow time series from a tidal object
obsplot(dat_in, ...)
## Default S3 method:
obsplot(
dat_in,
lines = TRUE,
logspace = TRUE,
dt_rng = NULL,
pretty = TRUE,
col = "black",
lwd = 1,
size = 2,
alpha = 1,
...
)
## S3 method for class 'tidal'
obsplot(dat_in, ...)
## S3 method for class 'tidalmean'
obsplot(dat_in, ...)
dat_in |
input tidal or tidalmean object |
... |
arguments passed to |
lines |
logical indicating if a line plot is used, otherwise points |
logspace |
logical indicating if plots are in log space |
dt_rng |
Optional chr string indicating the date range of the plot. Must be two values in the format 'YYYY-mm-dd' which is passed to |
pretty |
logical indicating if my subjective idea of plot aesthetics is applied, otherwise the |
col |
chr string of plot color to use |
lwd |
numeric value indicating width of lines |
size |
numeric value indicating size of points |
alpha |
numeric value indicating transparency of points or lines |
A ggplot
object that can be further modified
fitplot
## load a fitted tidal object
data(tidfit)
## plot using defaults
obsplot(tidfit)
## changing default
obsplot(tidfit, alpha = 0.5, size = 4, col = 'blue', lines = FALSE)
## plot a tidalmean object
data(tidfitmean)
obsplot(tidfitmean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.