layers: layers

layersR Documentation

layers

Description

An S4 class to represent a collection of single elements in a graphic;

Usage

layer(...)

## S4 method for signature 'layer'
initialize(
  .Object,
  ...,
  style = list(),
  visible = TRUE,
  units = list(),
  data = list(),
  action = list(),
  build = list(),
  display = list(),
  components = list(),
  layers = list(),
  frames = integerSet()
)

## S4 method for signature 'layer,component'
e1 + e2

## S4 method for signature 'layer,component'
e1 - e2

layer(...)

Arguments

components, ...

These parameters are merged into the components slot.

layers, style, units, functions, visible

parameters for the constructor new("layer") go directly into the relevant slots

frames

If this is an integerSet, it goes directly into the relevant slot. If it is a numeric vector it is converted into an integerSet for you.

Details

The default layer made by the constructor completely empty, with no parameters, no components, no sublayers, no functions, no units. It is active and plotted on every frame.

Slots

components

A list of components contained in the layer

layers

A list of layers contained in the layer

units

A list of units inherited by components and layers in this layer

data

a list of parameters inherited by components and layers in this layer

style

a list of parameters inherited by components and layers in this layer

visible

logical. If FALSE the layer isn't plotted.

action

list. Functions that act on the layer or its data or its components.

build

list.

display

list.

frames

an integerSet. The set of frames the layer can be displayed in, (assuming visible is TRUE).

Examples

print(1+1)

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