plot_sim_weight: Plot decision MAUT model with weights simulations

View source: R/plot_simulation_weight.R

plot_sim_weightR Documentation

Plot decision MAUT model with weights simulations

Description

Spider plot for the decision model considering the weights simulated with a Dirichlet distributions, every simulation is represented with lines, a box plot is included to account the behavior of every global utility.

Usage

plot_sim_weight(
  S,
  title = "Simulations",
  xlab = "ID",
  ylab = "Utility",
  lines.cols = "blue",
  box.col = "gold",
  box.outlier.col = "darkred",
  utility.col = "darkgreen",
  utility.point.col = "darkgreen",
  text.col = "black"
)

Arguments

S

first element of the simulation list produced by the function sim_weights, sim_const_weights.

title

text for the title plot.

xlab

text for x-axis label.

ylab

text for y-axis label.

lines.cols

the spectrum of colors for the simulation is selected randomly from a base color.

box.col

color for the boxes.

box.outlier.col

color for the outlier points representing the extreme observations in the boxplot.

utility.col

the main utility value is also plotted with this specific color.

utility.point.col

the line of main utilities is plotted with points represented with this color.

text.col

color for the text values plotted for each utility.

Value

ggplot object with the plot of simulations.

Author(s)

Pedro Guarderas

See Also

sim_const_weights sim_weights


pedroguarderas/mau documentation built on June 4, 2024, 2:04 a.m.