Description Usage Arguments Value
View source: R/color_by_node.R
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
1 | color_by_node(node_ID, class_color, class_size, panel_color)
|
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 |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.