R Markdown

  1. Draw a pie chart showing the proportion of cars from the mtcars data set that have different carb values.
knitr::include_graphics("/Users/XiaohanHou/Desktop/1.jpeg")

  1. Draw a bar graph, that shows the number of each gear type in mtcars.
knitr::include_graphics("/Users/XiaohanHou/Desktop/2.jpeg")

  1. Next show a stacked bar graph of the number of each gear type and how they are further divded out by cyl.
knitr::include_graphics("/Users/XiaohanHou/Desktop/3.jpeg")

4. Draw a scatter plot showing the relationship between wt and mpg.

knitr::include_graphics("/Users/XiaohanHou/Desktop/4.jpeg")

5. Design a visualization of your choice using the data.