plot.autoBN: S3 method of class autoBN

Description Usage Arguments Examples

View source: R/transform.R

Description

S3 method of class autoBN

Usage

1
2
## S3 method for class 'autoBN'
plot(x, ...)

Arguments

x

An object of calss autoBN

...

Further arguments to be passed to plot_autoBN

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(acs,package="moonBook")
fit<- lm(EF ~ age+TG+sex,data=acs)  ## age, sex donot need transformation
result=autoTransformFit(fit)
plot(result,fill="red")
plot(result,select=1:2,fill="blue")
plot(result,add.gam=TRUE)
plot(result,by=sex)
plot(result,add.gam=TRUE,by=sex,select=1)
plot(result,add.gam=TRUE,by=sex)
data("autotrader",package="bestNormalize")
autotrader$yearsold <- 2017 - autotrader$Year
fit<- lm(price ~ mileage + yearsold+status, data = autotrader)
result=autoTransformFit(fit)
plot(result,fill="red")
plot(result,add.gam=TRUE)
plot(result,add.gam=TRUE,select=1)

cardiomoon/webr2 documentation built on April 24, 2020, 9:44 p.m.