A plot matrix to display the results of partial association analyses. Upper-triangle contains scatter-plot matrix between each pair of response variables. Lower-triangle contains the partial correlation coefficients adjusted by covariates.
# S3 method for PAsso
plot(x, color = "#444444", shape = 19, size = 2, alpha = 0.5, ...)
The object in "PAsso" class that is generated by "PAsso" or "test".
The color of points.
The shapre of points. For more details see the help vignette:
vignette("ggplot2-specs", package = "ggplot2")
The size of points. For more details see the help vignette:
vignette("ggplot2-specs", package = "ggplot2")
The value to make the points transparent. For more details see the help vignette:
vignette("ggplot2-specs", package = "ggplot2")
Additional optional arguments to be passed onto.
A "GGally"
object.
A pairwise plot matrix reveals the partial association between ordinal variables.
All the plots are based on surrogate residuals generated from "resides"
function.
Graphics are designed based on ggplot2
and "GGally"
.
# NOT RUN {
data(ANES2016)
summary(ANES2016)
PAsso_2v <- PAsso(responses = c("PreVote.num", "PID"),
adjustments = c("income.num", "age", "edu.year"),
data = ANES2016)
plot(PAsso_2v)
# }
Run the code above in your browser using DataLab