Description Usage Arguments Value Methods (by class) Examples
Visualize the effect of interaction between two continuous independent variables on a response variable
1 2 3 4 5 6 7 |
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 |
An interactive plot showing interaction
default
: Visualize the effect of interaction between two continuous independent variables on a response variable
formula
: Visualize the effect of interaction between two continuous independent variables on a response variable
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.