Session Ready
Exercise

Concentration profiles

The data is stored in PKData contains the pharmacokinetic data for a single patient. We will explore it to familiarize ourselves with this type of data. We will also plot the plasma concentration levels against time relative to dose.

The ggplot2 library and PKData dataset have been preloaded for this session.

Instructions
100 XP
  • Display the contents of the dataset.
  • Generate a numeric variable for the concentration levels by using the as.numeric() function and save it to the plasma.conc.n column of PKData.
  • Use ggplot() to plot the concentration profile for the patient.