color_by_node: Helper function to to be used for the 'col' argument in the...

Description Usage Arguments Value

View source: R/color_by_node.R

Description

Helper function to to be used for the 'col' argument in the plot method for Raschtrees Helps to color item parameter in profileplots by inner nodes and ETS Mantel-Haenszel classification

Usage

1
color_by_node(node_ID, class_color, class_size, panel_color)

Arguments

node_ID

An integer indicating the inner node after which the item paramter should be colored

class_color

A character vector indicating the colors for items classified as A, B, or C

class_size

A character vector indicating the size for items classified as A, B, or C

panel_color

A character vector indicating the colors of the background panels for left and right terminal nodes of the inner node by which items are colored

Value

A function that takes the argument 'purification'node_ID' and 'color' and can be used as a value for the argument 'terminal_panel' in plot.raschtree()


mirka-henninger/raschTreeEffectSize documentation built on Nov. 14, 2021, 11:15 p.m.