Comments (3)
Obrigado por abrir o issue. O dado do geobr está completo. Veja examplo abaixo:
library(ggplot2)
library(geobr)
geo_reg <- geobr::read_region()
ggplot(data = geo_reg) +
geom_sf() +
labs(title = "Regiões do Brasil")
O problema ocorre na hora de fazer o left_join()
porque a grafia da região Centro-Oeste está diferente nas duas bases. Ou seja, o problema não é da geometria, mas simplesmente da grafia do nome da região.
No dado do geobr, não tem o hífem entre as duas palavras. Isso é um erro do geobr porque a grafia oficial tem o hifem. Para uma solução definitiva, eu criei um novo issue #333 para tratar disso. Para o curto prazo, sugiro vc simplesmente fazer um ajuste no texto da coluna.
Fechando esse issue aqui.
from geobr.
@JFARod , voce poderia por favor colar abaixo o código que voce usou para criar essas imagem ?
from geobr.
@JFARod , voce poderia por favor colar abaixo o código que voce usou para criar essas imagem ?
Claro @rafapereirabr , aqui está
`library(tidyverse)
library(geobr)
geo_reg<-read_region()
map_br_reg<-resumo_reg%>%
left_join(geo_reg,by=join_by(NomeRegiao==name_region))%>%
select(-c(code_region))
ggplot(data=map_br_reg)+
geom_sf(aes(fill=casos,geometry=geom))+
labs(title = "Distribuição de Casos no Brasil por Região")`
Também envio a View do objeto para mostrar que a linha Centro-oeste veio vazia
from geobr.
Related Issues (20)
- read_health_facilities() - Dados mais recentes HOT 10
- Divisao municipal em 5570
- Problem with pip install HOT 7
- Suggestion: input code_* to more read_*() functions HOT 5
- New data / function to download CNEF from IBGE.
- Error: Edge 46 crosses edge 48 HOT 5
- [python] New parameter `date` in read_health_facilities() HOT 1
- All `code_` columns should be treated as `character`
- Add code_state and code_abbrev colums to urban areas data set HOT 1
- Issue with the interaction with data.table HOT 1
- [python] Package pipeline tests fails because html5lib is missing
- [r-package] `read_country` with year=2019 or year=2020 returns states HOT 4
- [Python] Fix read_comparable_areas years available presentation HOT 1
- District and subdistrict boundaries HOT 1
- read_country
- Verification Digit calculation for cod_mun IBGE
- Função read_health_region HOT 3
- Unable to install on Windows HOT 5
- Invalid geometry for Amazônia in read_biomes HOT 6
- Duplicated census_tracts for 2022 data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geobr.