GGally (version 1.2.0)

print.ggmatrix: Print ggpair object

Description

Specialized method to print the ggpair object-

Usage

"print"(x, leftWidthProportion = 0.2, bottomHeightProportion = 0.1, spacingProportion = 0.03, gridNewPage = TRUE, ...)

Arguments

x
ggpair object to be plotted
leftWidthProportion
proportion of a plot area devoted to left axis labels
bottomHeightProportion
proportion of a plot area devoted to bottom axis labels
spacingProportion
proportion of a plot area devoted to the space between plots
gridNewPage
boolean that determines if a grid.newpage() should be executed before printing. Defaults to TRUE
...
ignored

Examples

Run this code
 data(tips, package = "reshape")
 pMat <- ggpairs(tips, c(1,3,2), mapping = ggplot2::aes_string(color = "sex"))
 pMat # calls print(pMat), which calls print.ggmatrix(pMat)

 ## defaults; (prints strips on top and right edges of matrix)
 # print(pMat, left = 0.2, spacing = 0.03, bottom = 0.1)

 ## give the left axis labels area a proportion of 3 plot size
 # print(pMat, leftWidthProportion = 3)

 ## give the bottom axis labels area a proportion of 1 plot size
 # print(pMat, bottomHeightProportion = 1)

 ## give the spacing between plots a proportion of 1 plot size
 # print(pMat, spacing = 1)

Run the code above in your browser using DataLab