# Analyzing &amp Visualizing Data-Rstudio

I’m studying for my Computer Science class and don’t understand how to answer this. Can you help me study?

### 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.

### "Looking for a Similar Assignment? Order now and Get a Discount! 