getPaginateInfo: get the pagination info from a plot

View source: R/plotting.R

getPaginateInfoR Documentation

get the pagination info from a plot

Description

get the pagination info from a plot

Usage

getPaginateInfo(pl)

Arguments

pl

ggplot

Author(s)

Daniel Lill (daniel.lill@physik.uni-freiburg.de)

Examples

pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  facet_grid_paginate(color ~ cut:clarity, ncol = 3, nrow = 3, page = 4)
getPaginateInfo(pl)
pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  facet_grid_paginate(color ~ ., nrow = 2, ncol = 2, page = 1)
getPaginateInfo(pl)
pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  facet_grid_paginate( ~ color, nrow = 2, ncol = 2, page = 1)
getPaginateInfo(pl)
pl <- ggplot(diamonds) +
  geom_point(aes(carat, price), alpha = 0.1) +
  facet_wrap_paginate( ~ color, nrow = 2, ncol = 2, page = 1)
getPaginateInfo(pl)

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.