# Analyzing And Visualizing Data 3

### Question Description

Background: This week we will continue creating more visualizations with ggplot2. In this assignment, you will place the data field based on keywords in a sentence.

Assignment:

• Use RStudio to generate advanced graphs (using the ggplot2 package) using the datasets from Week 5.
• Use the following videos from Week 11 to learn the commands to produce advanced graphs in RStudio: RStudio – Advanced Graphs2 – Part1.mp4 | RStudio – Advanced Graphs2 – Part2.mp4
• Both a screen shot and an explanation is required for each answer. Thus, you must write an answer to the question: What story is presented in this visualization?. Copy all screen shots into one Word document (other word processors are fine to use but save it in MS Word format) and answer the question after each screen shot. Your answer should contain five to eight observations about the data. Your screen shots must show the full RStudio window with proof that your command ran successfully, and contain the correct answer to the question. Circle the command and result in the console window of the screen shot if you have multiple commands showing in the screen shot.
• Remember to tell RStudio which fields are factors.
• Your cover page should contain the following: Title, Student’s name, University’s name, Course name, Course number, Professor’s name, and Date.
• Submit your assignment on or before the due date.

Graphs to Produce and questions to answer:

ggplot2 – Bar Plot: (Use dataset_price_personal_computers.csv)

• Plot the computer speed sold in the computers.
• Breakout the cd option based on the computer speed.
• Position the computer cd option side by side.
• Drilldown the dataset further based on premium.
• Label the x-axis.
• Label the y-axis.
• Give the graph a title.
• What story is presented in this visualization? (5 to 8 observations)

ggplot2 – Histogram: (Use dataset_production_of_rice_in_india.csv)

• Plot the distribution of the price of the rice production. (Use a binwidth = 5)
• Breakout the land status of ownership.
• Drilldown the dataset further based on the region where the rice is produced.
• Label the x-axis.
• Label the y-axis.
• Give the graph a title.
• What story is presented in this visualization? (5 to 8 observations)

ggplot2 – Box Plot: (Use dataset_tipping_data.csv)

• Plot the Time vs Total Bill of the meals.
• Breakout the sex of the individual.
• Drilldown the dataset further based on smoker.
• Label the x-axis.
• Label the y-axis.
• Give the graph a title.
• What story is presented in this visualization? (5 to 8 observations)

ggplot2 – Scatter Plot: (Use dataset_edgar_anderson_iris_data.csv)

• Plot the sepal length vs sepal width of the flowers. Include a trend line.
• Breakout the species of the flowers.
• Drilldown the dataset further based on the species.
• Label the x-axis.
• Label the y-axis.
• Give the graph a title.
• What story is presented in this visualization? (5 to 8 observations)