if (require(ggplot2, quietly = TRUE)) {
data(robins_subset, package = "inlabru") # get the data
# plot the counts for one year of data
ggplot(robins_subset[robins_subset$std_yr == 0, ]) +
geom_point(aes(lon, lat, colour = count + 1)) +
scale_colour_gradient(low = "blue", high = "red", trans = "log")
}
Run the code above in your browser using DataLab