2025-03-26

Slide 1: Introduction Slide

This presentation will discover the nuances of the ToothGrowth dataset in R. Specifically we will explore how Vitamin C affects tooth growth in Guinea Pigs.

Slide 2: Description of Data

  • The ToothGrowth dataset in built into R.
  • It records tooth growth in 60 guinea pigs.
  • Variables include:
    • len (numeric): Tooth length in millimeters (mm)
    • supp (categorical): (supplement type: “VC” = Vitamin C, “OJ” = Orange Juice)
    • dose (numeric): Dose of Vitamin C given daily, with three levels: 0.5, 1.0, and 2.0 mg/day.

Slide 3: R code

##    len supp dose
## 1  4.2   VC  0.5
## 2 11.5   VC  0.5
## 3  7.3   VC  0.5
## 4  5.8   VC  0.5
## 5  6.4   VC  0.5
## 6 10.0   VC  0.5

Slide 4: Bar Graph (ggplot)

The bar graph shows the number of guinea pigs by supplement type

Slide 5: Pie Chart (ggplot)

The pie chart shows the proportion of guinea pigs by dose level

Slide 6: 3D Scatterplot (plotly)

The 3D plot shows tooth length, dose, and supplement type

Slide 7: Boxplot (plotly)

This boxplot shows tooth length distribution by dose

Slide 8: Statistical Analysis

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##    4.20   13.07   19.25   18.81   25.27   33.90

The mean tooth length is 18.81 mm, with the minimum and maximum values being at 4.20 mm and 33.90 mm respectively. The majority of tooth length are in between 13.07 mm to 25.27 mm which shows indications of the effects of the Vitamin C in tooth growth in guinea pigs.