Learn R Programming

wqtrends (version 1.5.1)

show_prd3d: Plot a 3-d surface of predictions

Description

Plot a 3-d surface of predictions

Usage

show_prd3d(mod, ylab)

Value

a plotly surface

Arguments

mod

input model object as returned by anlz_gam

ylab

chr string for y-axis label

Examples

Run this code
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)')

Run the code above in your browser using DataLab