Learn R Programming

FormulR (version 1.0.0)

histogram: Generate histogram

Description

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

Usage

histogram(formulation_data, x, bins = 20)

Value

A histogram.

Arguments

formulation_data

A data frame containing the formulation data.

x

The name of the variable.

bins

The number of bins for the histogram.

Examples

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

Run the code above in your browser using DataLab