Learn R Programming

robcat (version 0.1.0)

plot.robpolycor: Plot method for classes "robpolycor" and "polycor".

Description

Plot method for classes "robpolycor" and "polycor".

Usage

# S3 method for robpolycor
plot(x, cutoff = 3, ...)

Value

An object of class "ggplot".

Arguments

x

Object of class "robpolycor" or "polycor".

cutoff

Cutoff beyond which the color scale for Pearson residuals is truncated.

...

Additional parameters to be passed down.

Examples

Run this code
## example data
set.seed(123)
x <- sample(c(1,2,3), size = 100, replace = TRUE)
y <- sample(c(1,2,3), size = 100, replace = TRUE)

fit <- polycor(x,y) 
plot(fit)

Run the code above in your browser using DataLab