next_move_tidy: Determine the next position to move to and the turn out of...

View source: R/getpath.R

next_move_tidyR Documentation

Determine the next position to move to and the turn out of there

Description

Determine the next position to move to and the turn out of there

Usage

next_move_tidy(plotNo, nPlots, curpath)

Arguments

plotNo

current plot number

nPlots

total number of plots

curpath

the current path

Value

a list containing the next position to move to (nextpos) and the turn out of there (nextout); Interpretation: nextpos: position of plot number plotNo+1 in the (non-trimmed) occupancy matrix nextout: turn out of nextpos

Note

- This assumes that the last plot is a 1d plot! - It also assumes that first1d = TRUE; will be adapted later in get_path() in case first1d = FALSE. - We start in (1, 2) and also have an additional last column in the occupancy matrix to have the first and last column left in case we end up there with the last 1d plot; this cannot happen for 'zigzag' but for 'tidy'.

Author(s)

Marius Hofert and Wayne Oldford


zenplots documentation built on Nov. 8, 2023, 1:10 a.m.