inset: functions to set position and size for insets

Description Usage Arguments

View source: R/inset.R

Description

set_position sets up a new plot at the specified position (in user coordinates), reset_position resets the plot to the original setup.

Usage

1
2
3
4
inset(inset.x, inset.y, fun, inset.size = 0.1, inset.bg = NULL,
  inset.mfcol = TRUE, ...)

reset_pos(oldpar, mfcol = TRUE)

Arguments

inset.x,inset.y

user coordinates for inset

fun

Function to be evaluated for inset (e.g. plot)

inset.size

relative width and height of inset (compared to main plot)

inset.bg

colour of background for inset

inset.mfcol

logical, is original layout with multiple panels?

...

additional arguments passed to fun

oldpar

plotting parameters to which region is reset to

mfcol

logical, should support for multiple panels be added?


jonasbhend/geoutils documentation built on May 19, 2019, 7:27 p.m.