prPushMarginViewport: Pushes viewport with margins

View source: R/private_functions.R

prPushMarginViewportR Documentation

Pushes viewport with margins

Description

A grid.layout object is used to generate the margins. A second viewport selecting the mid-row/col is used to create the effect of margins

Usage

prPushMarginViewport(bottom, left, top, right, name = "margin")

Arguments

bottom

The margin object, either in npc or a unit object, or a vector of 4 if you want the same margins allover.

left

The margin object, either in npc or a unit object.

top

The margin object, either in npc or a unit object

right

The margin object, either in npc or a unit object

name

The name of the last viewport

Value

2 - the number of pushed viewports


gforge/Gmisc documentation built on Aug. 30, 2023, 7:38 a.m.