| +.gg {GGally} | R Documentation |
This operator allows you to add ggplot2 objects to a ggpairs object.
## S3 method for class 'gg' e1 + e2
e1 |
An object of class |
e2 |
A component to add to |
If the first object is an object of class ggpairs, you can add
the following types of objects, and it will return a modified ggplot
object.
theme: update plot theme
The + operator completely replaces elements
with elements from e2.
data(tips, package = "reshape") pm <- ggpairs(tips[,2:3]) ## change to black and white theme pm + ggplot2::theme_bw() ## change to linedraw theme # pm + ggplot2::theme_linedraw() ## change to custom theme # pm + ggplot2::theme(panel.background = ggplot2::element_rect(fill = "lightblue"))