Plot sea level scenario data
Arguments
- dat
Input data from
get_scenario().- cols
character, color palette for the lines. Default is
c('deepskyblue', 'orange', 'red').- units
character, units for the y-axis. Default is
'ft'. Options are'ft'and'm'.- linewidth
numeric, line width. Default is
1.- caption
logical, add caption with source. Default is
TRUE. Does not apply ifplotly = TRUE.- xrng
numeric, x-axis range. Default is
c(2020, 2100).- xbrk
numeric, number of x-axis breaks. Default is
10. Does not apply ifplotly = TRUE.- yrng
numeric, y-axis range as two values. Default is
NULL, which uses the range of the data.- ybrk
numeric, number of y-axis breaks. Default is
7. Does not apply ifplotly = TRUE.- plotly
logical, if
TRUE, returns a plotly object instead of ggplot. Default isFALSE.
Examples
dat <- get_scenario()
plot_scenario(dat)
