R tmap print Italy

Hi, I want to draw a map. The country that I need to pront is Italy and I use this code:

library(tmap) # for static and interactive maps
library(leaflet) # for interactive maps
library(ggplot2) # tidyverse data visualization package

map = tm_shape(it) + tm_fill() + tm_borders()


If I write nz or world works but other contry not, why? How can I print Italy?

Is Italy present in your spatial data? Double check what countries are available. If you do not have an object called it in your working environment, then tmap will error out.

I Have solve, It isn't a dataset like nz or world in this function

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.