New names:
Rows: 4723 Columns: 7
── Column specification
──────────────────────────────────────────────────────── Delimiter: ";" chr
(2): mun, areakm2 dbl (5): ...1, X, layer, value, count
ℹ Use `spec()` to retrieve the full column specification for this data. ℹ
Specify the column types or set `show_col_types = FALSE` to quiet this message.
• `` -> `...1`
Warning: There was 1 warning in `mutate()`.
ℹ In argument: `area = as.numeric(area)`.
Caused by warning:
! NAs introduzidos por coerção
head(veg1)
# A tibble: 6 × 3
formacao area mun
<chr> <dbl> <chr>
1 f_florestal 257. Abatiá
2 c_alagado 0.774 Abatiá
3 f_florestal NA Adrianópolis
4 f_florestal NA Agudos do Sul
5 c_alagado 5.06 Agudos do Sul
6 f_florestal NA Almirante Tamandaré
sav_api<-savbar/apibar+plot_annotation(title ='Área de duas formações vegetais no PR',subtitle ='Área em km² de Savana e Apicum nos municípios em que as formações ocorrem',caption ='Dados obtidos através do Mapbiomas',theme =theme(plot.title =element_markdown(size=15,family="Arial",face="italic", colour ="black"),plot.subtitle =element_markdown(size=10,hjust=0,family="Palatino", color ="darkgreen"),plot.caption =element_markdown(size=10,hjust=0,family="Courier"),plot.background =element_rect(fill="lightgreen", color=NA)))sav_api
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Visualização de Mapas
Pacote geobr tem vários dados para o Brasil!
library(geobr)
Warning: package 'geobr' was built under R version 4.2.3
apicum<-apibar/mapa_paran +plot_annotation(title ='Área de Apicum no PR',subtitle ='Paranaguá é o município com maior área no estado',caption ='Dados obtidos através do Mapbiomas',theme =theme(plot.title =element_markdown(size=15,family="Arial",face="italic", colour ="black"),plot.subtitle =element_markdown(size=10,hjust=0,family="Palatino", color ="blue"),plot.caption =element_markdown(size=10,hjust=0,family="Courier"),plot.background =element_rect(fill="lightsteelblue", color=NA)))apicum
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
savanaa<-savbar/mapa_jagua2+plot_annotation(title ='Área de Savana no PR',subtitle ='Jaguariaíva é o município com maior área no estado',caption ='Dados obtidos através do Mapbiomas',theme =theme(plot.title =element_markdown(size=15,family="Arial",face="italic", colour ="black"),plot.subtitle =element_markdown(size=10,hjust=0,family="Palatino", color ="blue"),plot.caption =element_markdown(size=10,hjust=0,family="Courier"),plot.background =element_rect(fill="lightsteelblue", color=NA)))savanaa
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font
family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database
Aprendi muitas coisas, mas ainda não sei como colocar tudo em um script que funcione hehehe