This function generates a violin or box plot based on the provided data, parameter, and dose information.
Usage
flexible_violinboxplot(
boxplotdata,
parameter,
xvars,
colorvars,
varvalstofilter,
columns_to_hover,
box = TRUE
)
Arguments
- parameter
A string specifying the parameter to be plotted.
- columns_to_hover
A character vector indicating the column names from result_data that should be used to identify when hovering the plotly outputs
- box
A logical value indicating whether to plot a box plot (
TRUE
) or a violin plot (FALSE
). Default isTRUE
.- result_data
A list containing the data to be plotted. It should have a
data
element with dose information and aformatted
element with the data to be plotted.- doses_included
A vector of doses to be included in the plot.
- dosenumber_included
A vector of dose numbers to be included in the plot.