Learn R Programming

AdhereR (version 0.7.0)

get.legend.plotting.area: Get the legend plotting area.

Description

Returns the legend plotting area rectangle in plotting coordinates (if any).

Usage

get.legend.plotting.area(
  plot.type = c("baseR", "SVG")[1],
  suppress.warnings = FALSE
)

Arguments

plot.type

Can be either "baseR" or "SVG" and specifies to which type of plotting the mapping applies.

suppress.warnings

Logical, if TRUE don't show any warnings.

Value

A numeric vector with components x.min, x.max, y.min and y.max, or NULL in case of error or no legend being shown.

Details

This is intended for advanced users only.