library(bangladesh)
country <- get_map("country")
division <- get_map("division")
district <- get_map("district")
upazila <- get_map("upazila")
country <- get_map("country")
plot(country[1],col="red",border="darkgreen")
division <- get_map("division")
plot(division[1])
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 <- get_map("district")
plot(district[1])
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 <- 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
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])