Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

data_new1 and data_new2 represent subsets of data from the dataset babynames. The line plots should show the most popular names for boys and girls(the two

data_new1 and data_new2 represent subsets of data from the dataset "babynames." The line plots should show the most popular names for boys and girls(the two subsets), respectively. The line plot should start at the year 1900 up until 2017. It is supposed to show how popular the top 10 names for 2017 were in other years as well. This is what I have so far, I don't know how to make it so that the popularity of the names show up in multiple years. image text in transcribed

b. Generate two ggplots with the following. As always, put a title on each plot: 4 Plot 1: A line plot of the reported proportion or babies born with each or the top 10 remale names. Your plot should start with the year 1990 and should have difterent colors for each riane. + Plol 2: A line plol of the repor'Led proporlian of baties born wilh each of the Lop 10 nale names. Your plol should slarl wilh Lhe year 1900 and should have different colors for each nane. -Answer:"* library (babynanes) gaplot (data new1, aes (x= year, y= prop, color = name, group = name ))+ geoulline ()+ geon_point ()+ labs(x='Year", y= "proportion of Name Used", title= "Top Boy Names of 2017 ") ggplol(dala_new2, aes (x-year, y-prop, colur - nante, group - name ))+ gean_line ( ) + geon_point ()+ labs (x-'Year', y - "Proportion of Name Used", title- 'Top Gir' Manes of 2017")

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

NHS failure in England As powerpoint slide of maximum 5 pages

Answered: 1 week ago

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago