calculateXYscale: calculateXYscale

View source: R/D002_calculateXYScales.R

calculateXYscaleR Documentation

calculateXYscale

Description

A function to calculate the minimum/maximum co-ordinates of an artwork object

Usage

calculateXYscale(
  art,
  preserveAspectRatio = FALSE,
  aspectRatio = 1,
  innerMargin = 0.04
)

Arguments

art

an artwork object

preserveAspectRatio

logical

aspectRatio

numerical

innerMargin

numerical

Details

This function is used by easyPlot to automatically calculate xlim and ylim if used on components or layers, or a list of such objects. It runs all the functions in the artwork, so it will double the length of time it takes to plot an artwork. See easyPlot for more details.

Value

returns a list containing two vectors x and y which contain minimum and maximum values.

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.