elaborator_calculate_color_index: Calculates the index of the color vector in the qualitative...

View source: R/elaborator_calculate_color_index.R

elaborator_calculate_color_indexR Documentation

Calculates the index of the color vector in the qualitative trend analysis plot

Description

This function is mostly useful for generating the qualitative trend analysis plots. It returns the index of the color for a percentage which is observed for a specific pattern characterized by decreases/stability/increases from one visit to the next.

Usage

elaborator_calculate_color_index(r)

Arguments

r

numeric value specifying the percentage of patients with a specific pattern of decreased/stable/increased values from one visit to the next

Value

A numeric value between 1 and 11. This value is used as an index for the color legend in the qualitative trends plot in which darker colors reflect more frequent patterns


elaborator documentation built on April 4, 2025, 5:31 a.m.