plot.swmpr | R Documentation |
Plot a time series of parameters in a swmpr object
## S3 method for class 'swmpr'
plot(x, type = "l", ...)
## S3 method for class 'swmpr'
lines(x, ...)
x |
input swmpr object |
type |
chr string for type of plot, default |
... |
other arguments passed to |
The swmpr method for plotting is a convenience function for plotting a univariate time series. Conventional plotting methods also work well since swmpr objects are also data frames. See the examples for use with different methods.
plot
## get data
data(apadbwq)
swmp1 <- apadbwq
## subset
dat <- subset(swmp1, select = 'do_mgl',
subset = c('2013-07-01 00:00', '2013-07-31 00:00'))
## plot using swmpr method, note default line plot
plot(dat)
## plot using formula method
plot(do_mgl ~ datetimestamp, dat)
## plot using default, add lines
plot(dat, type = 'n')
lines(dat, col = 'red')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.