Simple feature collection with 6 features and 6 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -73.99045 ymin: -13.6937 xmax: -46.06151 ymax: 5.271841
Geodetic CRS: SIRGAS 2000
code_state abbrev_state name_state code_region name_region
1 11 RO Rondônia 1 Norte
2 12 AC Acre 1 Norte
3 13 AM Amazônas 1 Norte
4 14 RR Roraima 1 Norte
5 15 PA Pará 1 Norte
6 16 AP Amapá 1 Norte
geom uf_codigo
1 MULTIPOLYGON (((-65.3815 -1... 11
2 MULTIPOLYGON (((-71.07772 -... 12
3 MULTIPOLYGON (((-69.83766 -... 13
4 MULTIPOLYGON (((-63.96008 2... 14
5 MULTIPOLYGON (((-51.43248 -... 15
6 MULTIPOLYGON (((-50.45011 2... 16
Junção dos dados e construção do mapa
mapa_final <-left_join( mapa_uf, pib_uf,by ="uf_codigo")ggplot(mapa_final) +geom_sf(aes(fill = pib), color ="white") +scale_fill_viridis_c(option ="viridis",name ="PIB" ) +labs(title ="PIB por Unidade da Federação - 2021",subtitle ="Dados do SIDRA/IBGE",caption ="Fonte: SIDRA e geobr" ) +theme_minimal()
Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.
Running Code
When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:
1+1
[1] 2
You can add options to executable code like this
[1] 4
The echo: false option disables the printing of code (only output is displayed).