| quickplot | R Documentation |
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.
quickplot(x, y)
x |
A numeric vector of length > 3 |
y |
A numeric vector of length > 3 (equal in length to |
Jonathan Schwartz
Montgomery, D. C., Peck, E. A., Vining, G. G. (2013), Introduction to Linear Regression Analysis, Hoboken, NJ: John Wiley & Sons, Inc.
plot,
abline,
lm,
qqnorm,
qqline,
resplot,
boxplot
##quickly looking at the relationship between iris petal length and iris petal width quickplot(iris$Petal.Length,iris$Petal.Width)