set_space: change spaces in default layout

View source: R/crosslink.R

set_spaceR Documentation

change spaces in default layout

Description

change spaces in default layout

Usage

set_space(object, spaces)

Arguments

object

a CrossLink object

spaces

A named list of numeric vectors or characters of "equal", "partition" and "flank" (see crosslink). For each numeric vector, its length must be n+1, and n is the number of nodes in the corresponding cross; The vector is c(top flank, spaces between adjacent nodes, bottom flank); "equal", "partition" and "flank" will be converted to numeric vectors internally. Only crosses whose names are among the list's names will be changed.

Details

This function will only change default layout. So, it is recommended to use this function after crosslink, and before transformation.

Value

an updated CrossLink object


zzwch/crosslink documentation built on Aug. 27, 2023, 5:57 p.m.