BERT.graphics.device: Create a BERT graphics device.

Description Usage Details

Description

BERT.graphics.device creates a graphics device that renders to a named Shape in an Excel workbook.

Usage

1
2
3
BERT.graphics.device(name = "BERT-default", bgcolor = "white",
  width = 400, height = 400, pointsize = 14,
  scale = Sys.getenv("BERTGraphicsScale"), cell = F)

Details

If this is called from an Excel spreadsheet cell, set cell=TRUE and it will use a name that's generated from the cell address, which should be unique in the workbook. (That won't survive sheet renaming, but in that case just toss the old one and a new one will be generated on the next paint).

Size, background and pointsize arguments are ignored if the target named shape already exists. The values for these arguments are scaled based on reported screen DPI to give reasonable values on normal and high-DPI displays (to prevent this behavior, set the scale parameter to 1).


sdllc/BERTModule documentation built on May 29, 2019, 4:21 p.m.