KushtrimVisoka / kosovomaps

The "kosovomaps" πŸ‡½πŸ‡° R package makes it easy to plot the municipal and national border in R. The package contains functions and datasets that allow you to visualize maps of Kosovo in R and customize them according to your needs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About

The "kosovomaps" πŸ‡½πŸ‡° R package makes it easy to plot the municipal and national border in R. The package contains functions and datasets that allow you to visualize maps of Kosovo in R and customize them according to your needs.

License:MIT License


Languages

Language:R 100.0%