powered by
Creates an array of scatterplots
qscatter_array(variables,with.variables,data,x.lab="",y.lab="", main="Correlation Array",common.scales=TRUE,alpha=.25)
variables
An optional set of variables to correlate with variables. If nothing is specified, all variables in variables are correlated with themselves.
A data.frame from which the variables will be selected.
A label for the x axis
A label for the y axis
A label for the plot
should common x and y scales be used.
alpha transparency
data(mtcars) qscatter_array(d(cyl,disp,hp,drat), data=mtcars) + geom_smooth(method="lm") qscatter_array(d(cyl,disp,hp,drat),d(wt,carb),data=mtcars,common.scales=FALSE)
Run the code above in your browser using DataLab