qq {vannstats} | R Documentation |
Simplified Normal (Q-Q) Plot
Description
This function plots a Q-Q/Quantile-Quantile plot (qq) on a given data frame, and uses simplified calls within the function to parse the Q-Q plot by up to 2 variables.
Usage
qq(df, var1, by1, by2)
Arguments
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
by1 |
the main independent/predictor variable, |
by2 |
a potential second independent/predictor variable, |
Value
This function returns the quantile-quantile plot for var1
in data frame df
. Can be split to return a quantile-quantile plot for var1
in data frame df
, broken out by var2
.
Examples
data <- mtcars
qq(data,mpg,cyl)
[Package vannstats version 1.3.4.14 Index]