View source: R/ggpairs_getput.R
getPlot | R Documentation |
ggmatrix
objectRetrieves the ggplot object at the desired location.
getPlot(pm, i, j)
## S3 method for class 'ggmatrix'
pm[i, j, ...]
pm |
|
i |
row from the top |
j |
column from the left |
... |
ignored |
Barret Schloerke
putPlot
# Small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive
data(tips)
plotMatrix2 <- ggpairs(tips[, 3:2], upper = list(combo = "denstrip"))
p_(plotMatrix2[1, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.