quickplot {handyplots} | R Documentation |
Quick Plot
Description
If you have two numeric vectors of equal length you can use quickplot to quickly look at the potential relationship between them in four graphs at once.
Quickplot will show you a scatter plot with a regression line, a qq-plot to check the normality of the residuals, a residual plot to check the constancy and correlation of the residuals, and a boxplot for a quick overview of the spread of the two vectors, and two historgrams to see the distributions of the two vectors.
Usage
quickplot(x, y)
Arguments
x |
A numeric vector of length > 3 |
y |
A numeric vector of length > 3 (equal in length to |
Author(s)
Jonathan Schwartz
References
Montgomery, D. C., Peck, E. A., Vining, G. G. (2013), Introduction to Linear Regression Analysis, Hoboken, NJ: John Wiley & Sons, Inc.
See Also
plot
,
abline
,
lm
,
qqnorm
,
qqline
,
resplot
,
boxplot
Examples
##quickly looking at the relationship between iris petal length and iris petal width
quickplot(iris$Petal.Length,iris$Petal.Width)