Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need to fix the R code for my graph so I can group the years in either 5 or 10-year increments. Code: install.packages(tidyverse) install.packages(tidydr)
I need to fix the R code for my graph so I can group the years in either 5 or 10-year increments.
Code:
install.packages("tidyverse") install.packages("tidydr") library(tidydr) library(tidyverse) ggplot(data=trend4) + geom_point(mapping = aes(x = reorder(church4, year), y = gini_net, color = country)) + xlab("Religiousity") + ylab("Country GDP")
This is what it looks like:
37.5- 35.0 - 32.5 - country Germany Country GDP 30.0 - Ireland United States 27.5 - 25.0 - ReligiousityStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started