Learn R Programming

PAsso (version 0.1.8)

plot: 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 PAsso
plot(x, color = "#444444", ...)

Arguments

x

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

color

The color of points.

...

Additional optional arguments to be passed onto.

Value

A "GGally" object.

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

Examples

Run this code
# 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