Description Usage Arguments Value Examples
View source: R/stfl_plot_trends.R
Plot the results from station level fits to various statistics and various stations
1 2 3 4 5 6 7 | stfl_plot_trends(
fit.res,
plot.fit = c("LMrob", "LM", "MK")[1],
connect.points = TRUE,
force.Y.scale.log = FALSE,
plotly = TRUE
)
|
fit.res |
Fit result created by |
plot.fit |
Which trend lines should be added to the plots. Possible values are one or more of
If you try and plot a method that was not computed, a warning message is printed and the request is ignored. |
connect.points |
Should the annualized values be connected with a line. |
force.Y.scale.log |
Should the Y axis be plotted on the log-scale regardless if the
fits are done on the log scale. Note that if the original fit was NOT done on the log(Y) scale,
then setting |
plotly |
Should a plot_ly() graph be returned (default), or a ggplot graph |
plot_ly graph of the results
1 2 3 4 5 6 7 8 9 | ## Not run:
# needs the HYDAT package installed
station.id <- "08NM116"
data <- stfl_get_annual_stat(station.id, Statistic=c("MEAN","P10","P90"))
temp <- stfl_trend_kstn_kstat(data, log.Y=TRUE)
stfl_plot_trends(temp, plot.fit=c("MK","LM","LMrob"))
stfl_plot_trends(temp, plot.fit=c("LMrob"), plotly=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.