Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.52 KB

README.md

File metadata and controls

65 lines (46 loc) · 1.52 KB

kosovomaps

Installation

You can install the released version of kosovomaps from GitHub:

# install.packages("devtools")
devtools::install_github("Kushtrimvisoka/kosovomaps")

Basic Usage

1) Load packages

library(kosovomaps)
library(tidyverse)
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
#> ✓ ggplot2 3.3.2     ✓ purrr   0.3.4
#> ✓ tibble  3.0.4     ✓ dplyr   1.0.2
#> ✓ tidyr   1.1.2     ✓ stringr 1.4.0
#> ✓ readr   1.4.0     ✓ forcats 0.5.0
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()

2) Load the map of Kosovo - State level:

RepublicOfKosovo <- mapof(x = "state")

Plot an example:

ggplot(RepublicOfKosovo)+
  geom_sf()+
  theme_void()

3) Load the map of Kosovo - Municipal level:

MunicipOfKosovo <- mapof(x = "municip")

Plot an example:

ggplot(MunicipOfKosovo)+
  geom_sf()+
  theme_void()