Learn R Programming

ggplot2 (version 3.0.0)

find_panel: Find panels in a gtable

Description

These functions help detect the placement of panels in a gtable, if they are named with "panel" in the beginning. find_panel returns the extend of the panel area, while panel_cols and panel_rows returns the columns and rows that contains panels respectively.

Usage

find_panel(table)

panel_cols(table)

panel_rows(table)

Arguments

table

A gtable

Value

A data.frame with some or all of the columns t(op), r(ight), b(ottom), and l(eft)