if (FALSE) {
if (require("ggplot2", quietly = TRUE) &&
require(ggpolypath, quietly = TRUE)) {
# Load the Gorilla data
data(gorillas, package = "inlabru")
# Create a base map centred around the nests and plot the boundary as well
# as the nests
ggplot() +
gg(gorillas$boundary) +
gg(gorillas$nests, color = "white", size = 0.5)
if (requireNamespace("ggmap", quietly = TRUE)) {
gmap(gorillas$nests, maptype = "satellite") +
gm(gorillas$boundary) +
gm(gorillas$nests, color = "white", size = 0.5)
}
}
}
Run the code above in your browser using DataLab