Advanced Graphs in RStudio (ggplot2)

Question Description

Background: We have seen how simple data analysis assist us with telling the story of raw datasets. Now we will learn how the use of advanced graphs play a major “drilling down” deep into the meaning of the data.

Assignment:

Use RStudio to generate advanced graphs (using the ggplot2 package) using the dataset below.

Graphs to Produce:

ggplot2 – Bar Plot: (Use dataset_student_survey_data.csv)

  • x=Smoke
  • fill=Exer
  • position=dodge
  • facet_wrap=Sex
  • x-label=Smoker
  • y-label=Counts
  • title=[First Name] – The Exercise habits of Male and Female students that smoke

ggplot2 – Histogram: (Use dataset_us_car_price_data.csv)

  • x=Price
  • fill=Type
  • facet_wrap=Type
  • x-label=Price
  • y-label=Freq
  • title= [First Name] – Car Price Distribution based on Car Type

ggplot2 – Box Plot: (Use dataset_production_of_rice_in_indonesia.csv)

  • x=varieties
  • y=price
  • fill=bimas
  • facet_wrap=status
  • x-label=Rice Varieties
  • y-label=Price
  • title= [First Name] – Indonesia Rice Prices based on Varieties, Land Status, and Bimas Program

ggplot2 – Scatter Plot: (Use dataset_production_of_rice_in_indonesia.csv)

  • x=price
  • y=wage
  • shape=bimas
  • col=bimas
  • facet_wrap=status
  • method=lm
  • se=F
  • x-label=Rice Price
  • y-label=Wage
  • title= [First Name] – Indonesia Rice Prices vs Wage based broken down by Land Status and Bimas Program

Please put all screen shots in a MS Word (other word processors are fine to use but save it in MS Word format). Add your first name to the graph title.

Get your college paper done by experts

Do my question How much will it cost?

Place an order in 3 easy steps. Takes less than 5 mins.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *