Description Usage Arguments Value Examples
Visualize the effect of interaction between two continuous independent variables on a response variable
1 2 3 |
x |
An integer(1 or 2) indicating which independent variable is used as x-axis variable |
probs |
A vector of probability weights for obtaining the elements of the vector being sampled.Default value is c(0.10,0.5,0.90) |
point |
A logical value. If TRUE, draw points |
xvalue |
A numeric vector |
digits |
An integer indicating the number of decimal places |
use.rownames |
If TRUE, use rownames in label |
interactive |
A logical value. If TRUE, an interactive plot will be returned |
An interactive plot showing interaction
1 2 3 4 5 6 7 8 9 10 11 | data(mtcars)
fit=lm(mpg~wt*hp,data=mtcars)
require(ggplot2)
ggEffect(fit,use.rownames=TRUE)
ggEffect(fit,use.rownames=TRUE,interactive=TRUE)
ggEffect(fit,no=2)
require(moonBook)
fit2=lm(NTAV~age*smoking,data=radial)
ggEffect(fit2,interactive=TRUE)
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.