plot.gamhp | R Documentation |
gam.hp
objectPlot for a gam.hp
object
## S3 method for class 'gamhp'
plot(x, plot.perc = FALSE, ...)
x |
A |
plot.perc |
Logical;if TRUE, the bar plot (based on ggplot2 package) of the percentage to individual effects of variables towards total explained variation, the default is FALSE to show plot with original individual effects. |
... |
unused |
a ggplot object
Jiangshan Lai lai@njfu.edu.cn
library(mgcv)
mod1 <- gam(Sepal.Length ~ s(Petal.Length) + s(Petal.Width) + Sepal.Width,data = iris)
plot(gam.hp(mod1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.