Learn R Programming

FormulR (version 1.0.0)

scatterplot: Generate scatterplot

Description

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

Usage

scatterplot(formulation_data, x, y)

Value

A scatterplot.

Arguments

formulation_data

A data frame containing the formulation data.

x

The name of the x-variable.

y

The name of the y-variable.

Examples

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

Run the code above in your browser using DataLab