gggrob: Get the grid.draw-able ggplot grob The output from ggplotGrob...

View source: R/heatmap.R

gggrobR Documentation

Get the grid.draw-able ggplot grob The output from ggplotGrob can not be directly used in grid.draw, the position can not be set. This function extracts the gTree from the ggplot grob.

Description

Get the grid.draw-able ggplot grob The output from ggplotGrob can not be directly used in grid.draw, the position can not be set. This function extracts the gTree from the ggplot grob.

Usage

gggrob(p, void = TRUE, nolegend = TRUE)

Arguments

p

A ggplot object

void

If TRUE, the theme_void will be added to the ggplot object

nolegend

If TRUE, the legend will be removed from the ggplot object

Value

A gTree object


plotthis documentation built on April 11, 2025, 5:45 p.m.