View source: R/DrugFormulation.R
histogram | R Documentation |
This function generates a histogram to visualize the distribution of a variable.
histogram(formulation_data, x, bins = 20)
formulation_data |
A data frame containing the formulation data. |
x |
The name of the variable. |
bins |
The number of bins for the histogram. |
A histogram.
formulation_data <- data.frame(
Drug_Release = rnorm(100, mean = 50, sd = 10)
)
histogram(formulation_data, "Drug_Release")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.