powered by
Given a gam model this convenience function returns a plot of all smooth terms contained in the model. If more than one smooth is present, the different smooth are faceted.
gg_smooth(x, ...)# S3 method for default gg_smooth(x, fit, ...)
# S3 method for default gg_smooth(x, fit, ...)
A data frame or object of class ped.
ped
Further arguments passed to get_terms
get_terms
A model object.
A ggplot object.
ggplot
# NOT RUN { g1 <- mgcv::gam(Sepal.Length ~ s(Sepal.Width) + s(Petal.Length), data=iris) gg_smooth(iris, g1, terms=c("Sepal.Width", "Petal.Length")) # }
Run the code above in your browser using DataLab