Plot observed response variable and salinity/flow data
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 geom_line
lines
: logical indicating if a line plot is used, otherwise pointslogspace
: logical indicating if plots are in log spacedt_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 as.Date
.pretty
: logical indicating if my subjective idea of plot aesthetics is applied, otherwise the ggplot
default themes are usedcol
: chr string of plot color to uselwd
: numeric value indicating width of linessize
: numeric value indicating size of pointsalpha
: numeric value indicating transparency of points or linesA ggplot
object that can be further modified
## 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)
fitplot
Useful links