── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Rows: 5275 Columns: 10
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (5): iso2c, iso3c, country, region, income
dbl (5): year, gdp_percap, population, birth_rate, neonat_mortal_rate
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
ggplot(nations_new1, aes(x = year, y = gdp_tril, color = country)) +geom_line() +labs(title ="China's Rise to Become the Largest Economy",x ="year",y ="GDP ($ trillion)") +scale_color_brewer(palette ="Set1") +geom_point(size =1.25) +theme_minimal()
`summarise()` has grouped output by 'region'. You can override using the
`.groups` argument.
ggplot(nations_new2, aes(x = year, y = GDP, fill = region)) +geom_area(color ="white") +labs(title ="GDP by World Bank Region",x ="year",y ="GDP ($ trillion)") +scale_fill_brewer(palette ="Set2") +theme_minimal()