ggEffect: ggEffect generic

Description Usage Arguments Value Methods (by class) Examples

Description

Visualize the effect of interaction between two continuous independent variables on a response variable

Usage

1
2
3
4
5
6
7
ggEffect(x, ...)

## Default S3 method:
ggEffect(x, y, x1, x2, ...)

## S3 method for class 'formula'
ggEffect(x, data, ...)

Arguments

x

Object to ggEffect

...

additional arguments passed to the generic function

x1

A name of one of the independent variable

x2

A name of the other independent variable

data

A data

x

A name of response variable

x

A formula

Value

An interactive plot showing interaction

Methods (by class)

Examples

1
2
3
4
5
6
7
8
9
#data(mtcars)
#fit=lm(mpg~wt*hp,data=mtcars)
#ggEffect(fit,use.rownames=TRUE)
#ggEffect(fit,no=2)
#require(moonBook)
#fit2=lm(NTAV~age*smoking,data=radial)
#ggEffect(fit2)
#fit3=lm(age~sex*smoking,data=acs)
#ggEffect(fit3,interactive=TRUE)

cardiomoon/moonBook2 documentation built on May 13, 2019, 12:40 p.m.