plot: A matrix of partial regression plots between responses after...

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
2
## S3 method for class 'PAsso'
plot(x, color = "#444444", shape = 19, size = 2, alpha = 0.5, ...)

Arguments

x

The object in "PAsso" class that is generated by "PAsso" or "test".

color

The color of points.

shape

The shapre of points. For more details see the help vignette: vignette("ggplot2-specs", package = "ggplot2")

size

The size of points. For more details see the help vignette: vignette("ggplot2-specs", package = "ggplot2")

alpha

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.

Details

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".

Value

A "GGally" object.

Examples

1
2
3
4
5
6
7
8
9
data(ANES2016)

summary(ANES2016)

PAsso_2v <- PAsso(responses = c("PreVote.num", "PID"),
                 adjustments = c("income.num", "age", "edu.year"),
                 data = ANES2016)

plot(PAsso_2v)

PAsso documentation built on June 18, 2021, 5:09 p.m.