Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed
37.5- 35.0 - 32.5 - country Germany Country GDP 30.0 - Ireland United States 27.5 - 25.0 - Religiousity

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Brief Calculus & Its Applications

Authors: Larry J Goldstein, David C Lay, David I Schneider, Nakhle I Asmar

13th Edition

0321888510, 9780321888518

More Books

Students also viewed these Mathematics questions