Hi,
I have population density data for the USA, United States of America: Population Density for 400m H3 Hexagons - Humanitarian Data Exchange,
I want to plot a population map for Alaska, But I am having an issue assigning the coordinates,
I am trying the code
data1 <- st_read("kontur_population_US_20220630.gpkg")
s <- states() |>
st_transform(crs = st_crs(data1))
head(s$NAME, 50)
st <- s |>
filter(NAME == str_to_title("Alaska"))
st |>
ggplot() + coord_sf(xlim = c(-179, -121))+
geom_sf()
But the map is coming as
How to set the coordinates from 179w to 120w (-179,-120)
Thanks