layer_annotation: layer_annotation

View source: R/layer_annotation.R

layer_annotationR Documentation

layer_annotation

Description

layer_annotation

Usage

layer_annotation(
  grob,
  bbox = c(0.5, 1, 0, 1),
  unit = "npc",
  xscale = FALSE,
  yscale = FALSE,
  clip = "on",
  ...
)

Arguments

grob

grob object

bbox

The region to plot grob, ⁠[xmin, xmax, ymin, ymax]⁠ in the unit of npc.

unit

A character vector specifying the units for the corresponding numeric values.

xscale

A numeric vector of length two indicating the minimum and maximum on the x-scale. The limits may not be identical.

yscale

A numeric vector of length two indicating the minimum and maximum on the y-scale. The limits may not be identical.

clip

One of "on", "inherit", or "off", indicating whether to clip to the extent of this viewport, inherit the clipping region from the parent viewport, or turn clipping off altogether. For back-compatibility, a logical value of TRUE corresponds to "on" and FALSE corresponds to "inherit".

May also be a grob (or a gTree) that describes a clipping path or the result of a call to as.path.

...

ignored


kongdd/latticeGrob documentation built on March 30, 2024, 3:35 a.m.