easyPlot: easyPlot

View source: R/E003_easyPlot.R

easyPlotR Documentation

easyPlot

Description

Plots any art object and accepts parameters for a quick way to plot and modify art objects.

Usage

easyPlot(
  art,
  border = 0.1,
  useGrid = FALSE,
  format = "screen",
  width = NULL,
  height = NULL,
  name = NULL,
  folder = NULL,
  frameFolder = NULL,
  xlim = NULL,
  ylim = NULL,
  widthUnit = "in",
  heightUnit = "in",
  deviceSettings = list(res = 150, antialias = "cleartype"),
  bg = NA,
  borderLine = "black",
  preserveAspectRatio = FALSE,
  .aspectRatio = 1,
  plotArt = TRUE,
  mode = NULL,
  frames = 1,
  framesToPlot = NULL,
  framerate = c(10, 30),
  innerMargin = 0.04,
  startingFrame = 1,
  ...
)

Arguments

art

either a component, a list of components, a layer, a list of layers, a section, a page or an artwork.

border

size of border(s)

useGrid

logical

format

string

width, height

numerical

name

string

folder

string

frameFolder

string

xlim, ylim

numerical

widthUnit, heightUnit

list of units

deviceSettings

list of settings

bg

background colour

borderLine

border colour

preserveAspectRatio

logical. see addBorder

.aspectRatio

numerical #why .? see addBorder

plotArt

logical. If FALSE simply returns the artwork.

mode

numeric.

frames

numeric.

framesToPlot

numeric.

framerate

numeric.

innerMargin

numeric. see addBorder

startingFrame

numeric. For plotting modes 2,3 and 4. Determines where the file name numbering sequence starts. Useful for adding new frames onto the end of previously produced output.

...

parameters passed to the final artwork using art=art+artdata(...)

Value

depends on plotArt and mode and art@mode.

Examples

print(1+1)

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