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”)
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
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()
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)
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”)
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
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()
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)
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.