View source: R/DrugFormulation.R
boxplot | R Documentation |
This function generates a boxplot to compare the distribution of a variable across different groups.
boxplot(formulation_data, x, y)
formulation_data |
A data frame containing the formulation data. |
x |
The name of the grouping variable. |
y |
The name of the variable. |
A boxplot.
formulation_data <- data.frame(
Formulation_Type = sample(c("Type A", "Type B"), 100, replace = TRUE),
Drug_Release = rnorm(100, mean = 50, sd = 10)
)
boxplot(formulation_data, "Formulation_Type", "Drug_Release")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.