general_meanplot.Rd
This function generates a mean concentration plot for an ADNCA dataset based on user-selected study IDs, analytes, and cycles. The plot can be customized to display data on a linear or logarithmic scale and can optionally include standard deviation error bars.
general_meanplot(
data,
selected_studyids,
selected_analytes,
selected_cycles,
id_variable = "DOSEA",
plot_ylog = FALSE,
plot_sd = FALSE
)
A data frame containing the ADNCA dataset.
A character vector of selected study IDs to be included in the plot.
A character vector of selected analytes to be included in the plot.
A character vector or numeric vector of selected cycles to be included in the plot.
A character string specifying the variable by which to color the lines in the plot. Default is "DOSEA".
A logical value indicating whether to use a logarithmic scale for the y-axis. Default is FALSE.
A logical value indicating whether to include standard deviation error bars. Default is FALSE.
A ggplot object representing the mean concentration plot.