This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(sf) | |
library(terra) | |
library(stars) | |
library(ggspatial) | |
library(systemfonts) | |
library(patchwork) | |
register_variant( | |
name = "Input Mono Light", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! Mapa distribuição de variáveis sobre maps do pack map - GGPLOT | |
library(ggplot2) | |
#extract reference data | |
mapcounties <- map_data("county") | |
mapstates <- map_data("state") | |
#merge data with ggplot county coordinates | |
mapcounties$county <- with(mapcounties , paste(region, subregion, sep = ",")) | |
mergedata <- merge(mapcounties, unemp_data, by.x = "county", by.y = "counties") |