Description Usage Arguments Value Source See Also Examples
View source: R/RegressionLibs.R
Function that generate a data frame with the data used for ggplot function for make a scatterplot matrix.
1 | makePairs(dataSet)
|
dataSet |
an object of class data frame with a data set. |
an object of class data frame with the data used for ggplot function.
https://gastonsanchez.wordpress.com/2012/08/27/scatterplot-matrices-with-ggplot/
ScatterplotMatrix
1 2 3 4 5 6 7 8 9 | #This function is used by ScatterplotMatrix
#Example 1
iris.x <- iris[,1:4] # These are the independent variables
Species <- iris[,5] # This is the dependent variable
# A Scatterplot of all columns
ScatterplotMatrix(iris.x, c(1,2,3,4), Species, "Species")
# A Scatterplot of somes columns and different point size and alpha point
ScatterplotMatrix(iris.x, c(2,4), Species, "Species", 2, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.