This function generates a violin or box plot based on the provided data, parameter, and dose information.
flexible_violinboxplot(
res_nca,
parameter,
xvars,
colorvars,
varvalstofilter = NULL,
columns_to_hover,
box = TRUE,
plotly = TRUE,
seed = NULL
)A plotly object representing the violin or box plot.
A PKNCA results object containing the results and concentration data.
A string specifying the parameter to be plotted.
Variables for the x axis.
Variables for the color aesthetic.
Character vector specifying which variable and value to pre-filter
as colname: value. By default is NULL (no pre-filtering)
A character vector indicating the column names from result_data that should be used to identify when hovering the plotly outputs
A logical value indicating whether to plot a box plot (TRUE) or a
violin plot (FALSE). Default is TRUE.
A logical value defining if the output is plotly (TRUE, default) or ggplot otherwise (FALSE)
An integer value to set the seed for reproducibility of jittering. Default (NULL) will use the current R seed.