# NOT RUN {
#Only run these examples if the `magick` package is installed.
if (length(find.package("magick", quiet = TRUE)) > 0) {
#Combining base R plotting with rayshader's spherical color mapping and raytracing:
# }
# NOT RUN {
montereybay %>%
sphere_shade() %>%
add_overlay(height_shade(montereybay),alphalayer = 0.6) %>%
add_shadow(ray_shade(montereybay,zscale=50)) %>%
plot_map()
# }
# NOT RUN {
# }
# NOT RUN {
#Add contours with `generate_contour_overlay()`
montereybay %>%
height_shade() %>%
add_overlay(generate_contour_overlay(montereybay)) %>%
add_shadow(ray_shade(montereybay,zscale=50)) %>%
plot_map()
# }
# NOT RUN {
}
# }
Run the code above in your browser using DataLab