Retrieves the ggplot object at the desired location.
getPlot(pm, i, j)
# S3 method for ggmatrix
[(pm, i, j, ...)
ggmatrix
object to select from
row from the top
column from the left
ignored
# 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])
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> Warning: Removed 22 rows containing missing values (`geom_bar()`).