Practical Assignment 5: Data? More Advanced Graphs in RStudio (ggplot2)
Background: This week you will be given a dataset and the documentation that goes along with the dataset. Up until today, I have told what to graph or what to fields to plots in the graphs.
Assignment: Use the provided dataset to produce visualizations and then tell the story of your visualizations. The dataset and dataset documentation will be found in this week’s folder. I will also create a video that will provide more details for the assignment.
Graphs to Produce:
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?
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 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: (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?
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?
Please put all screen shots in a MS Word (other word processors are fine to use but save it in MS Word format). Don't upload the screen shots individually in the assignment folder! Submit your assignment on or before the due date.Background: This week you will be given a dataset and the documentation that goes along with the dataset. Up until today, I have told what to graph or what to fields to plots in the graphs.
Assignment: Use the provided dataset to produce visualizations and then tell the story of your visualizations. The dataset and dataset documentation will be found in this week’s folder. I will also create a video that will provide more details for the assignment.
Graphs to Produce:
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?
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 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: (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?
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?
Please put all screen shots in a MS Word (other word processors are fine to use but save it in MS Word format). Don't upload the screen shots individually in the assignment folder! Submit your assignment on or before the due date.
6 years ago
15
- Devry BIS155/BIS 155 week 2 quiz (All correct)
- facts paper
- Find the radius of a circle with a circumference of 25.12 cm
- Creative Instructor
- PROJ 584 Managing SW Devel Projects Week 3 Discussion Question 2 Why the Need for Meticulous Planning
- Stock Reacquisition" Please responds to the following: • From the e-Activity, briefly outline the details of the stock reacquisition, and give your opinion of whether or not the stock reacquisition created value for the corporation that you researched. Pr
- OPS/ 571 Week 6 team work Process Improvement Presentation
- I have a 2 simple circuits, one I should find the current in each mesh, the other is nodal amyloid...
- Abnormal Psychology Final Exam
- Prof James #3