scatterplot: Generate scatterplot

View source: R/DrugFormulation.R

scatterplotR Documentation

Generate scatterplot

Description

This function generates a scatterplot to visualize the relationship between two variables.

Usage

scatterplot(formulation_data, x, y)

Arguments

formulation_data

A data frame containing the formulation data.

x

The name of the x-variable.

y

The name of the y-variable.

Value

A scatterplot.

Examples

formulation_data <- data.frame(
  Excipient_Concentration = runif(100, min = 0, max = 1),
  Drug_Release = rnorm(100, mean = 50, sd = 10)
)
scatterplot(formulation_data, "Excipient_Concentration", "Drug_Release")

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