Learn R Programming

Inquilab (version 0.1.0)

plot_second_order_kinetics: Plot for Second Order Kinetics

Description

This function plots the actual and transformed (1/c) concentrations based on second-order kinetics.

Usage

plot_second_order_kinetics(t, c, kinetic_model)

Value

This function generates a plot of the actual vs. predicted concentrations based on the provided kinetic model and data points. The plot is rendered directly to the active plotting device.

Arguments

t

Numeric vector, time points.

c

Numeric vector, concentrations corresponding to each time point.

kinetic_model

Model object, result of lm function fitting 1/c ~ t.

Examples

Run this code
t <- c(0, 5, 10, 15, 20, 25)
c <- c(100, 80, 60, 40, 20, 10)
model <- lm(1/c ~ t)
plot_second_order_kinetics(t, c, model)

Run the code above in your browser using DataLab