Learn R Programming

FormulR (version 1.0.0)

boxplot: Generate boxplot

Description

This function generates a boxplot to compare the distribution of a variable across different groups.

Usage

boxplot(formulation_data, x, y)

Value

A boxplot.

Arguments

formulation_data

A data frame containing the formulation data.

x

The name of the grouping variable.

y

The name of the variable.

Examples

Run this code
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")

Run the code above in your browser using DataLab