Analyzing and visualizing data

Anonymous
timer Asked: Jul 5th, 2018
account_balance_wallet $15

Question description

Background: This week you will be given a dataset and the documentation that goes along with the dataset. Up until today, I have told you what to graph or what fields to plot in the graphs. This week, you will decide what fields to use.

Assignment:

  • User RStudio to generate advanced graphs (using the ggplog2 package) using the dataset below.
  • Replace each categorical placeholder with appropriate categorical data fields.
  • Replace each continuous placeholder with appropriate continuous data fields.
  • Use the video above as an introduction to this assignment. Note: We have already had our residency weekend, so you can ignore the comment about residency being next week.
  • 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 question to answer:

ggplot2 - Bar Plot: (Use dataset_budget_share_Food_Spanish_Households.csv)

ggplot(dataset_name, aes(x=categorical, fill=categorical)) + facet_wrap(~categorical) + theme_bw() + geom_bar(position="dodge")

  • 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_budget_share_Food_Spanish_Households.csv)

ggplot(dataset_name, aes(x=continuous, fill=categorical)) + theme_bw() + facet_wrap(~categorical) + geom_histogram(binwidth=5) -- you should decide the correct binwidth

  • 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_budget_share_Food_Spanish_Households.csv)

ggplot(dataset_name, aes(x=categorical, y=continuous, fill=categorical)) + theme_bw() + facet_wrap(~categorical) + geom_boxplot()

  • 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_budget_share_Food_Spanish_Households.csv)

ggplot(dataset_name, aes(x=continuous, y=continuous, shape=categorical, col=categorical)) + facet_wrap(~categorical) + theme_bw() + geom_point() + geom_smooth(method="lm",se=F)

  • Label the x-axis.
  • Label the y-axis.
  • Give the graph a title.
  • What story is presented in this visualization? (5 to 8 observations)

Tutor Answer

uoscar
School: Duke University

Hello, My schedule has been really tight at the moment,...

flag Report DMCA
Review

Anonymous
Wow this is really good.... didn't expect it. Sweet!!!!

Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors