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 if- plotly = TRUE.
- xrng
- numeric, x-axis range. Default is - c(2020, 2100).
- xbrk
- numeric, number of x-axis breaks. Default is - 10. Does not apply if- plotly = 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 if- plotly = TRUE.
- plotly
- logical, if - TRUE, returns a plotly object instead of ggplot. Default is- FALSE.
Examples
dat <- get_scenario()
plot_scenario(dat)
 
