prepGridMargins: Convert margins to viewport npc margins

View source: R/prepGridMargins.R

prepGridMarginsR Documentation

Convert margins to viewport npc margins

Description

Convert margins to viewport npc margins

Usage

prepGridMargins(mar)

Arguments

mar

A vector of margins, at positions:

  • 1 = bottom

  • 2 = left

  • 3 = top

  • 4 = right

Value

Returns a list with bottom, left, top, and right as unit("npc")


forestplot documentation built on Oct. 11, 2024, 5:07 p.m.