R/show_prd3d.R
show_prd3d.Rd
Plot a 3-d surface of predictions
show_prd3d(mod, ylab)
input model object as returned by anlz_gam
anlz_gam
chr string for y-axis label
a plotly surface
plotly
library(dplyr) # data to model tomod <- rawdat %>% filter(station %in% 34) %>% filter(param %in% 'chl') %>% filter(yr > 2015) mod <- anlz_gam(tomod, trans = 'log10') show_prd3d(mod, ylab = 'Chlorophyll-a (ug/L)')