plot {PAsso}R Documentation

A matrix of partial regression plots between responses after adjustments

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

## 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

data(ANES2016)

summary(ANES2016)

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

plot(PAsso_2v)


[Package PAsso version 0.1.10 Index]