makePairs: Make Pairs Function

Description Usage Arguments Value Source See Also Examples

View source: R/RegressionLibs.R

Description

Function that generate a data frame with the data used for ggplot function for make a scatterplot matrix.

Usage

1
makePairs(dataSet)

Arguments

dataSet

an object of class data frame with a data set.

Value

an object of class data frame with the data used for ggplot function.

Source

https://gastonsanchez.wordpress.com/2012/08/27/scatterplot-matrices-with-ggplot/

See Also

ScatterplotMatrix

Examples

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)

mariytu/RegressionLibs documentation built on May 21, 2019, 11:47 a.m.