Body Fat Analysis by Sex

Inserting Files to R

  1. Inserted data and changed name of file to bf using bf=read.csv(““)
  2. Used head(bf) to visualize our data
bf=read.csv("BodyFat.csv")
head(bf)
##    SEX BODYFAT
## 1 MALE    13.3
## 2 MALE     6.0
## 3 MALE    20.0
## 4 MALE     8.0
## 5 MALE    14.0
## 6 MALE    19.0

Data Figures

Table of Data

  1. Referenced cheat sheet to hep us create title
  2. Table was created using table function
  3. col.names named the columns
  4. caption functioned titled our table
  5. Lastly inserted titles and subtitles
Sex Body Fat
Male 8
Male 5
Female 6
Female 9
knitr::include_graphics("Body Fat Picture.jpg")

This picture represents people with different body fat ratios