Articles by Home on educatorsRlearners: A blog about education and R

Making a map using IELTS Averages in Asia

February 16, 2019 | Home on educatorsRlearners: A blog about education and R

library(tidyverse)
## ── Attaching packages ──────────────────────────────────────────────────────────────────────────────────── tidyverse 1.2.1 ──
## ✔ ggplot2 3.1.0       ✔ purrr   0.3.0  
## ✔ tibble  2.0.1       ✔ dplyr   0.8.0.1
## ✔ tidyr   0.8.2       ✔ stringr 1.4.0  
## ✔ readr   1.3.1       ✔ forcats 0.4.0
## ── Conflicts ─────────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
library(spData) library(spDataLarge) library(rvest)
## Loading required package: xml2
## 
## Attaching package: 'rvest'
## The following object is masked from 'package:purrr':
## 
##     pluck
## The following object is masked from 'package:readr':
## 
##     guess_encoding
library(tmap) world %__% filter(subregion %in% c("Eastern Asia", "South-Eastern Asia")) -__ east_asia tm_shape(east_asia, projection = 3857) + tm_polygons(col = "lifeExp", n = 5) + tm_layout(title = "EAAST",inner.margins = c(0.1, 0.02, 0.05, 0.02)) + tm_scale_bar() #loads ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)