dot-create_severity_ribbon_plot: .create_severity_ribbon_plot

.create_severity_ribbon_plotR Documentation

.create_severity_ribbon_plot

Description

This function creates a ggplot2 plot with confidence intervals and ribbons for the given data frame.

Usage

.create_severity_ribbon_plot(
  df,
  graph_title = "",
  x_axis_title = "",
  y_axis_title = "",
  legend_name = "Type",
  legend_labels = NULL,
  y_axis_limits = c(0.15, 0.95),
  y_min_value = "2.5%",
  y_max_value = "97.5%",
  alpha_1 = 0.5,
  alpha_2 = 0.3,
  linetype_1 = 5,
  linetype_2 = 2,
  color_palette = c("#bebada", "#fb8072", "#8dd3c7", "#80b1d3", "#ffff67", "#fdb462",
    "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd")
)

Arguments

df

A data frame containing the data to be plotted. The data frame should have columns for 'MEAN', 'lb', 'ub', 'topval', and 'type'.

graph_title

A string specifying the title of the graph. Default is an empty string.

x_axis_title

A string specifying the title for the x-axis. Default is an empty string.

y_axis_title

A string specifying the title for the y-axis. Default is an empty string.

legend_name

A string specifying the name of the legend. Default is "Type".

legend_labels

A named vector specifying custom labels for the legend. Default is NULL.

y_axis_limits

A numeric vector specifying the limits for the y-axis. Default is c(0.15, 0.95).

y_min_value

A string specifying the column name for the lower bound of the ribbon. Default is "2.5".

y_max_value

A string specifying the column name for the upper bound of the ribbon. Default is "97.5".

alpha_1

A numeric value between 0 and 1 to define the transparency of the interquartile range. Default is 0.15.

alpha_2

A numeric value between 0 and 1 to define the transparency of the confidence interval range. Default is 0.05.

linetype_1

A numeric value between 0 and 1 to define the linetype of the interquartile range. Default is 1 "solid".

linetype_2

A numeric value between 0 and 1 to define the linetype of the confidence interval range. Default 2 "dashed".

color_palette

A character vector specifying the color palette to use for the plot. Default is a set of 10 colors.

Value

A ggplot2 object representing the plot.


valueSetCompare documentation built on June 22, 2024, 6:57 p.m.