Warning: There was 1 warning in `filter()`.
ℹ In argument: `country == c("Japan", "China", "United States", "Germany")`.
Caused by warning in `country == c("Japan", "China", "United States", "Germany")`:
! longer object length is not a multiple of shorter object length
plot1
# A tibble: 25 × 11
# Groups: country [4]
iso2c iso3c country year gdp_percap population birth_rate neonat_mortal_rate
<chr> <chr> <chr> <int> <dbl> <dbl> <dbl> <dbl>
1 CN CHN China 2000 2915. 1262645000 14.0 21.2
2 CN CHN China 2014 13255. 1364270000 12.4 5.9
3 CN CHN China 2009 8290. 1331260000 12.1 9.1
4 CN CHN China 1997 2265. 1230075000 16.6 24.4
5 CN CHN China 2002 3527. 1280400000 12.9 18.6
6 CN CHN China 1995 1860. 1204855000 17.1 26.9
7 DE DEU Germany 1990 19033. 79433029 11.4 3.4
8 DE DEU Germany 2003 29362. 82534176 8.6 2.7
9 DE DEU Germany 2007 36778. 82266372 8.3 2.5
10 DE DEU Germany 1998 24871. 82047195 9.6 2.9
# ℹ 15 more rows
# ℹ 3 more variables: region <chr>, income <chr>, gdp <dbl>
#graphggplot(plot1, aes(x = year, y = gdp, group = country, color = country)) +geom_point() +geom_line() +scale_color_brewer(palette ="Set1")