change spaces in default layout

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.

Value

an updated CrossLink object

Details

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

Examples