drawSettings: Modify Default Drawing Settings

Description Usage Arguments Details Value Examples

Description

Modify Default Drawing Settings

Usage

1

Arguments

...

Default settings to modify draw package settings stored in an environment.

Details

The following parameters are available to change:

*

arrow

drawBox

drawCircle

drawCurve

drawExport

drawLine

drawPage

drawPoint

drawText

Value

A list of the current draw settings with changes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library(draw)

# Set page dimensions and units to inches
drawSettings(pageWidth = 5, pageHeight = 5, units = "inches")

# Set export resolution in Pixels Per Inch (PPI)
drawSettings(exportPPI = 300)

# Set default width and height for all boxes in inches
drawSettings(boxWidth = 1, boxHeight = 1)

# Create a new drawing page
drawPage()

# Draw default 1 by 1 inch boxes near the center
drawBox(x = 2, y = 2.5)
drawBox(x = 3, y = 2.5)

# Draw a non-default 2 by 2 inch box in the center
drawBox(x = 2.5, y = 2.5, width = 2, height = 2)

# Export the current drawing page
drawExport("drawSettingsExample.pdf")

draw documentation built on May 2, 2019, 8:30 a.m.