plot.pcpr2: Plot PC-PR2 output

Description Usage Arguments Details Examples

View source: R/plot.R

Description

plot.pcpr2 plots partial R2 values.

Usage

1
2
## S3 method for class 'pcpr2'
plot(x, ...)

Arguments

x

an object of class pcpr2.

...

additional arguments passed to the barplot function.

Details

This function plots a barchart of partial R2 values created by the pcpr2 function for easy interpretation. The bars are annotated with values.

Examples

1
2
3
output <- runPCPR2(transcripts, Z_metadata)
plot(output, col="red", main="Variability in transcriptomics data explained by covariates",
ylab="Rpartial2")

JoeRothwell/pcpr2 documentation built on June 17, 2021, 8:58 a.m.