boxplot {FormulR} | R Documentation |
Generate boxplot
Description
This function generates a boxplot to compare the distribution of a variable across different groups.
Usage
boxplot(formulation_data, x, y)
Arguments
formulation_data |
A data frame containing the formulation data. |
x |
The name of the grouping variable. |
y |
The name of the variable. |
Value
A boxplot.
Examples
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")
[Package FormulR version 1.0.0 Index]