iplotC {poliscidata} | R Documentation |
Interaction plot
Description
Interaction plot uses brkdn.plot
in plotrix package and svyby
function from survey package. Warnings suppressed so the function creates plot without generating intermediate results used to create plot.
Usage
iplotC(function1 = NULL, function2 = NULL, data, function3 = NULL, ...)
Arguments
function1 |
A function in the form ~depvar |
function2 |
A function. Here indepvar is typed before controlvar: ~indepvar + controlvar |
data |
Design dataset (e.g. nesD, gssD, statesD, or worldD) |
function3 |
A function. Here indepvar is typed after controlvar: ~controlvar + indepvar |
... |
Further arguments to be passed to |
Value
No value returned
Examples
library(poliscidata)
iplotC(function1 = ~ ft_dem, function2 = ~ gender + married,
data = nesD, function3 = ft_dem ~ married + gender)
iplotC(~ft_dem, ~gender+married, nesD, ft_dem~married+gender,
xlab="Gender", ylab="Democratic Party Rating",
main="Democratic Party Rating by Gender and Marital Status")
[Package poliscidata version 2.3.0 Index]