drawCatModel | R Documentation |
Draw statistical diagram including categorical X
drawCatModel(
xcount = 3,
M = NULL,
W = NULL,
whatLabel = "name",
addDots = TRUE,
xmargin = 0.01,
radx = 0.08,
ymargin = 0.02,
xlim = c(-0.2, 1.2),
ylim = xlim,
rady = 0.04,
maxypos = 0.6,
minypos = 0.2,
ypos = c(1, 0.5),
mpos = c(0.5, 0.9),
xinterval = NULL,
yinterval = NULL,
box.col = "white",
xspace = NULL,
label.pos = list()
)
xcount |
integer length of categorical variables |
M |
character name of mediator variable |
W |
character name of moderator variable |
whatLabel |
What should the edge labels indicate in the path diagram? Choices are c("est","name") |
addDots |
logical. |
xmargin |
horizontal margin between nodes |
radx |
horizontal radius of the box. |
ymargin |
vertical margin between nodes |
xlim |
the x limits (min,max) of the plot |
ylim |
the y limits (min,max) of the plot |
rady |
vertical radius of the box. |
maxypos |
maximal y position of X or W variables |
minypos |
minimal y position of X or W variables |
ypos |
The x and y position of Y node. Default value is c(1,0.5) |
mpos |
The x and y position of M node. Default value is c(0.5,0.9) |
xinterval |
numeric. Horizontal intervals among labels for nodes and nodes |
yinterval |
numeric. Vertical intervals among labels for nodes and nodes |
box.col |
fill color of the box |
xspace |
numeric. Horizontal distance between nodes |
label.pos |
Optional list of arrow label position |
drawCatModel(xcount=4)
drawCatModel(M="M",box.col="yellow")
drawCatModel(W="W",xlim=c(-0.08,1),ylim=c(0.13,0.95),ypos=c(1,0.55))
drawCatModel(M="M",W="W",xlim=c(-0.08,1),ylim=c(0.13,0.95),ypos=c(1,0.55))
drawCatModel(xcount=4,M="M",W="W",xlim=c(-0.08,1),ylim=c(0.13,0.95),ypos=c(1,0.55))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.