Learn R Programming

zenplots (version 1.0.6)

get_path: Computing the path according to the provided method

Description

Computing the path according to the provided method

Usage

get_path(
  turns = NULL,
  n2dcols = c("letter", "square", "A4", "golden", "legal"),
  n2dplots,
  method = c("tidy", "double.zigzag", "single.zigzag", "rectangular"),
  first1d = TRUE,
  last1d = TRUE
)

Value

the path, a list containing the turns, the positions (indices in the occupancy matrix) and the the occupancy matrix

Arguments

turns

The turns

n2dcols

The number of columns of 2d plots (>= 1) or one of "letter", "square", "A4", "golden", "legal". Note that n2dcols is ignored if turns is not NULL.

n2dplots

The number of 2d plots to be laid out

method

A character string indicating the method according to which the path is built

first1d

A logical indicating whether the first 1d plot should be plotted

last1d

A logical indicating whether the last 1d plot should be plotted

Author

Marius Hofert and Wayne Oldford