## load a fitted tidal object
data(tidfit)
# plot using defaults
fitmoplot(tidfit)
if (FALSE) {
# get the same plot but use default ggplot settings
fitmoplot(tidfit, pretty = FALSE)
# plot specific quantiles
fitmoplot(tidfit, tau = c(0.1, 0.9))
# plot the normalized predictions
fitmoplot(tidfit, predicted = FALSE)
# modify the plot as needed using ggplot scales, etc.
library(ggplot2)
fitmoplot(tidfit, pretty = FALSE, linetype = 'dashed') +
theme_classic() +
scale_y_continuous(
'Chlorophyll',
limits = c(0, 5)
) +
scale_colour_manual(
'Predictions',
labels = c('lo', 'md', 'hi'),
values = c('red', 'green', 'blue'),
guide = guide_legend(reverse = TRUE)
)
# plot a tidalmean object
data(tidfitmean)
fitmoplot(tidfitmean)
}
Run the code above in your browser using DataLab