Advance Graphs in RStudio
Data: More Advanced Graphs in RStudio (SpF) (ggplot2)
Background: This week a dataset and the detail data documentation are provided separately. These are very similar to the set used during our residency session. Please make sure you read the requirements carefully before beginning. There is additional information to be provided for each item along with screen captures.
Assignment: Use the provided dataset to produce visualizations and then tell the story of your visualizations. The dataset and detail data documentation will be found in this week’s folder.
The dataset is named dataset_budget_share_Food_Spanish_Households_0420.csv.
The detail data documentation is named R_Budget_Share_of_Food_for_Spanish_Households.pdf.
Graphs to Produce:
ggplot2 - Bar Plot
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?
ggplot2 – Histogram
ggplot(dataset_name, aes(x=continuous, fill=categorical)) + theme_bw() + facet_wrap(~categorical) + geom_histogram(binwidth=5) -- you can decide the binwidth
- Label the x-axis.
- Label the y-axis.
- Give the graph a title.
- What story is presented in this visualization?
ggplot2 - Box Plot
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?
ggplot2 - Scatter Plot
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?
Please put all screen shots in a Word (other word processors are fine to use but save it in MS Word format). Include screen captures showing all windows in the one Word document for each graph. Please submit your assignment on or before the due date.
6 years ago
15
Purchase the answer to view it

- MoreAdvancedGraphsinRStudio.docx
- Accounting essay
- ergonomics
- "Course Recap”
- Visit the Social Psychology Network website. The website provides a number of links regarding conflict and antisocial behavior. Write a paper of 250-500 words in which you summarize what you learned. Prepare this assignment according to the APA guidelines
- FPSY 4112 , 7 slides MINIMUM
- Section 5.2 Homework
- received phyllis young
- Leadership in Healthcare
- Operations Management and Financial Management Integration
- 1. Discrete Probability Distribution ??? Imagine you are in a game show, where Now, let us start the money give-away! ...