ggGamCat: Draw a ggplot summarizing categorical variables with an...

Description Usage Arguments Examples

View source: R/ggGam.R

Description

Draw a ggplot summarizing categorical variables with an object of class gam

Usage

1
ggGamCat(model, select = NULL, scales = "free_x", type = NULL)

Arguments

model

An object of class gam

select

numeric Choices of dependent categorical variables to plot

scales

Should scales be fixed ("fixed"), free ("free"), or free in one dimension ("free_x", "free_y")?

type

character type argument to be passed to predict.gam

Examples

1
2
3
4
5
6
require(mgcv)
data(Wage,package="ISLR")
model=gam(wage~s(age,by=education)+education+jobclass,data=Wage,method="REML")
plot(model,shift=coef(model)[1],pages=1,all.terms=TRUE,shade=TRUE,
    seWithMean=TRUE,residuals=TRUE)
ggGamCat(model)

cardiomoon/ggGam documentation built on May 2, 2020, 9:58 a.m.