Description Usage Arguments Details Value Examples
Function to output timeseries plots for sediment parameters. Output is a list of plots or write to PDF.
1 2 3 4 5 6 7 8 9 10 11 |
x |
A |
log.P80154 |
Logical, if |
log.P70331 |
Logical, if |
log.P80155 |
Logical, if |
log.P80225 |
Logical, if |
log.P91145 |
Logical, if |
log.P00530 |
Logical, if |
siteSelect |
Character, site number to create plots for if |
PDFout |
Character. File or full path name of file for plots. If |
Timeseries plots of SSC (P80154), sand/silt break (P70331), SSL (P80155), bedload (P80255), bedload mass (P91145) and TSS (P00530).
Not all parameters need to be present in x
for plots to be created (eg. if only SSC present than only SSC timeseries plot returned)
If PDFout is not specified, than a list of the plots is returned. Plots (if applicable) are specified above. See example for more details.
Portions of code modified from WQReview::qwtsPlot
.
If PDFout = NULL
, list containing ggplot elements. If PDFout
specified, a PDF document containing the plots.
1 2 3 4 5 6 7 8 9 10 11 | data("exampleData",package="sedReview")
x <- exampleData
sedTS <- plot_sedTS(exampleData, siteSelect = "05586300")
## Not run:
# view plot in Rstudio
sedTS$SSC
# output to file on D drive
plot_sedTS(exampleData, siteSelect = "05586300", PDFout = "D:/timeseries.pdf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.