plot.confound.grid | R Documentation |
Plot a grid of x y plots showing how a third confounding variable 'z' changes the slope
## S3 method for class 'confound.grid'
plot(x, Y='y', X='x', confounder='z', breaks=3, mains='breaks',...)
x |
a data frame |
Y |
the name of the column with the dependent/outcome variable |
X |
the name of the column with the predictor variable |
confounder |
the name of the column with confounding variable |
breaks |
number or vector of breaks to split the plots horizontally (across x) |
mains |
a vector plot title strings; defaults to the continuous->categorical break levels of 'confounder' |
... |
other arguments passed to 'plot' |
a confound grid plot
# Swiss fertility confounding example
plot.confound.grid(x=swiss, "Infant.Mortality", "Fertility" , "Education", breaks=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.