R/layout.R

Defines functions layout_pm

Documented in layout_pm

#' Configure layout parameters for process map
#'
#' @param fixed_positions When specified as a data.frame with three columns 'act', 'x', and 'y' the position of nodes is fixed. Note that using this option switches to the 'neato' layout engine.
#' @param edge_weight When `TRUE` then the frequency with which an edge appears in the process map has influence on the process map layout. Edges with higher frequency get higher priority in the layout algorithm, which increases the visibility of 'process highways'. Note that this has no effect when using the 'fixed_positions' parameters.
#' @param edge_cutoff (\code{\link{numeric}}) Number between 0 and 1. Edges with a relative frequency below the cut off are not considered at all when calculating the layout. This may create very long and complicated edge routings when choosen too high. Note that this has no effect when using the 'fixed_positions' parameters.
#'
#' @export
#'
layout_pm <- function(fixed_positions= NULL,
				   edge_weight = FALSE,
				   edge_cutoff = 0.0) {

	layout <- list()

	class(layout) <- c("process_map_layout", class(layout))

	layout$fixed_positions = fixed_positions
	layout$edge_weight = edge_weight
	layout$edge_cutoff = edge_cutoff
	return(layout)

}

Try the processmapR package in your browser

Any scripts or data that you put into this service are public.

processmapR documentation built on Sept. 11, 2024, 8:08 p.m.