histogram: Generate histogram

View source: R/DrugFormulation.R

histogramR Documentation

Generate histogram

Description

This function generates a histogram to visualize the distribution of a variable.

Usage

histogram(formulation_data, x, bins = 20)

Arguments

formulation_data

A data frame containing the formulation data.

x

The name of the variable.

bins

The number of bins for the histogram.

Value

A histogram.

Examples

formulation_data <- data.frame(
  Drug_Release = rnorm(100, mean = 50, sd = 10)
)
histogram(formulation_data, "Drug_Release")

FormulR documentation built on June 22, 2024, 7:36 p.m.