Learn R Programming

saeRobust (version 0.5.0)

plot.rfh: Plots

Description

Various implementations of diagnostic plots. They are linked together using the plot generic function.

Usage

# S3 method for rfh
plot(x, y, ...)

# S3 method for prediction.fitrfh plot(x, y, alpha = 0.05, ...)

# S3 method for mse.fitrfh plot(x, y = "pseudo", xlim = NULL, ylim = NULL, ...)

qqPlot(sample)

blandAltmanPlot(x, y, alpha = 0.05)

Arguments

x

an object

y

for mse estimates a filter for the predictors; otherwise ignored

...

ignored

alpha

(numeric) between 0 and 1 - used in computation of confidence interval

xlim, ylim

arguments are passed to coord_cartesian and coord_flip.

sample

(numeric) a vector

Details

qqPlot a QQ-Plot using ggplot2

blandAltmanPlot a Bland-Altman plot. Solid line is the mean. Dashed lines are the upper and lower bound of the limits-of-aggreements: z-quantile * sd(x - y) -- not the standard error. The alpha level can be set using alpha. This plot is otherwise known as Tukey's mean-difference plot.

Examples

Run this code
qqPlot(rnorm(10))
blandAltmanPlot(rnorm(10), rnorm(10))

Run the code above in your browser using DataLab