I am new to sf. In the following code, I generated two maps, one for USA and one for Australia. I would like to move those two next to each other on the same ggplot. I have tried to change longitude and latitude values for Australia within geometry. I just wonder if there is a quick way to do this. Any suggestions would be appreciated.
library(tidyverse)
library(sf)
library(rnaturalearth)
map_au <-ne_states(country = c("australia"), returnclass ="sf") %>%
select(state = name, geometry)
map_us <-ne_states(country = c("united states of america"), returnclass ="sf") %>%
select(state = name, geometry) %>%
filter(!state %in% c("Alaska", "Hawaii"))
ggplot(data = map_us, aes(fill = state))+
geom_sf()+
geom_sf(data = map_au)+
theme(legend.position = "none")
Created on 2020-11-04 by the reprex package (v0.3.0)
