Library

library(bangladesh)

Data

country <- get_map("country")
division <- get_map("division")
district <- get_map("district")
upazila <- get_map("upazila")

Bangladesh

country <- get_map("country")
plot(country[1],col="red",border="darkgreen")

Division

division <- get_map("division")
plot(division[1])

Division(My version)

division <- get_map("division")
plot(division[1],col=heat.colors(7))
## Warning in plot.sf(division[1], col = heat.colors(7)): col is not of length 1
## or nrow(x): colors will be recycled; use pal to specify a color palette

District

district <- get_map("district")
plot(district[1])

District(My version)

district <- get_map("district")
plot(district[1],col=colors<-terrain.colors(10))
## Warning in plot.sf(district[1], col = colors <- terrain.colors(10)): col is not
## of length 1 or nrow(x): colors will be recycled; use pal to specify a color
## palette

Upazila

upazila <- get_map("upazila")
plot(upazila[1],col=colors<-terrain.colors(7))
## Warning in plot.sf(upazila[1], col = colors <- terrain.colors(7)): col is not
## of length 1 or nrow(x): colors will be recycled; use pal to specify a color
## palette

Data Transform Library

library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union

#Select Muladi and Dhanmondi and Jatrabari

# Create subset for Muladi and Dhanmondi and Jatrabari
subset_upazila <- upazila %>%
  filter(Upazila %in% c("Muladi","Dhanmondi","Jatrabari"))

plot(subset_upazila[1])