To submit this homework you will create the document in Rstudio, using the knitr package (button included in Rstudio) and then submit the document to your Rpubs account. Once uploaded your will submit the link to that document on Moodle.

Questions

  1. Draw a pie chart showing the proportion of cars from the mtcars data set that have different carb values.
#library(imager)
library(png)
first = readPNG("/Users/sumanthjinagouda/Desktop/Assignment_images/1.png")
plot(first)

  1. Draw a bar graph, that shows the number of each gear type in mtcars.

  2. Next show a stacked bar graph of the number of each gear type and how they are further divded out by cyl.

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

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