show_scenario: Plot a Bar Chart for a Single Scenario

View source: R/option.R

show_scenarioR Documentation

Plot a Bar Chart for a Single Scenario

Description

Visualizes the attribute values of a provided scenario. For each attribute, a bar is plotted, and the maximum possible value is highlighted.

Usage

show_scenario(scenario, tree, label_y = TRUE, modify_par = TRUE)

Arguments

scenario

Scenario data to visualize.

tree

Associated Tree object providing attribute details.

label_y

Logical value indicating whether to label the Y-axis (default is TRUE).

modify_par

Logical value to decide if graphical parameters should be modified (default is TRUE).

Value

No return value, called for side effects

See Also

evaluate_scenario

Examples

tree <- dexisensitivity::masc2
option <- create_options(tree, num_options=1, seed = 42)
scenario <- evaluate_scenario(tree, option)
show_scenario(as.matrix(scenario), tree = tree, label_y = TRUE)


dexisensitivity documentation built on Oct. 30, 2024, 1:08 a.m.