# \donttest{
if (require("ggplot2", quietly = TRUE) &&
require("ggpolypath", quietly = TRUE)) {
data(mexdolphin_sf, package = "inlabru")
ggplot() +
gg(mexdolphin_sf$mesh) +
gg(mexdolphin_sf$ppoly, color = "blue", alpha = 0, linewidth = 1) +
gg(mexdolphin_sf$samplers) +
gg(mexdolphin_sf$points, aes(size = size), color = "red") +
scale_size_area()
ggplot() +
gg(mexdolphin_sf$mesh, color = mexdolphin_sf$lambda, mask = mexdolphin_sf$ppoly)
}
# }
if (FALSE) {
if (requireNamespace("ggmap", quietly = TRUE) &&
require("ggplot2", quietly = TRUE) &&
require("ggpolypath", quietly = TRUE)) {
gmap(mexdolphin$depth) +
gm(mexdolphin$ppoly, color = "blue") +
gm(mexdolphin$samplers) +
gm(mexdolphin$points, aes(size = size), color = "red")
gmap(mexdolphin$depth) +
gm(mexdolphin$depth, aes(col = depth)) +
gm(mexdolphin$ppoly)
}
}
Run the code above in your browser using DataLab