The main grobblR
function which contains and organizes
grob_col
's and grob_row
's, giving the overall
grob-layout its shape.
grob_layout(
...,
height = 280,
width = 216,
title = "",
title_aes_list = ga_list(),
title_p = 0.1,
title_height = NA_real_,
caption = "",
caption_aes_list = ga_list(),
caption_p = 0.05,
caption_height = NA_real_,
padding_p = 0.05,
padding = NA_real_,
page_number = ""
)
An R6 class object containing all information necessary to create the overall grob-layout.
The combination of grob-rows and grob-columns which will help give the main grob-layout outputted its structure and aesthetics.
The numeric height of the grob-layout in millimeters.
Default is 280 mm - which is the height of an upright 8.5 x 11 inches piece of copy paper.
The numeric width of the grob in millimeters.
Default is 216 mm - which is the width of an upright 8.5 x 11 inches piece of copy paper.
A character string which will be displayed as the title of the grob-layout.
The list outputted by ga_list
, which
controls aesthetics of the title of the grob-layout.
The numeric proportion the grob-layout's height will be used by the title grob.
The numeric height in mm within the grob-layout which will
be used by the title grob. Will override title_p
if provided.
A character string which will be displayed as the caption at the bottom of the grob-layout.
The list outputted by ga_list
, which
controls aesthetics of the caption of the grob-layout.
The numeric proportion of height within the grob-layout and its allotted space which will be used by the caption grob.
The numeric height in mm within the grob-layout which will
be used by the caption grob. Will override caption_p
if provided.
The proportion of the minimum of the height and width which will be used for the padding around the edge of the grob-layout.
Overridden by any numeric value provided in the padding
parameter.
The numeric amount of padding around the edge of the grob-layout in millimeters.
A single value that can be converted to an integer for the page number in the bottom right of the grob-layout within its padding. If it cannot be converted to an integer, the page number will not appear.
Learn more in vignette("grob_layout")
grob_layout(
grob_row(grob_col(1, border = TRUE), grob_col(2, border = TRUE)),
grob_row(grob_col(3, border = TRUE))
) %>%
view_grob(100, 100)
Run the code above in your browser using DataLab