View source: R/D002_calculateXYScales.R
calculateXYscale | R Documentation |
A function to calculate the minimum/maximum co-ordinates of an artwork object
calculateXYscale( art, preserveAspectRatio = FALSE, aspectRatio = 1, innerMargin = 0.04 )
art |
an artwork object |
preserveAspectRatio |
logical |
aspectRatio |
numerical |
innerMargin |
numerical |
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.
returns a list containing two vectors x and y which contain minimum and maximum values.
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.