#Reduce the size of the monterey bay dataset by half
if(rayshader:::run_documentation()) {
montbaysmall = resize_matrix(montereybay, scale=0.5)
montbaysmall %>%
sphere_shade() %>%
plot_map()
}
if(rayshader:::run_documentation()) {
#Reduce the size of the monterey bay dataset from 540x540 to 100x100
montbaysmall = resize_matrix(montereybay, width = 100, height = 100)
montbaysmall %>%
sphere_shade() %>%
plot_map()
}
if(rayshader:::run_documentation()) {
#Increase the size of the volcano dataset 3x
volcanobig = resize_matrix(volcano, scale=3)
volcanobig %>%
sphere_shade() %>%
plot_map()
}
if(rayshader:::run_documentation()) {
#Increase the size of the volcano dataset 2x, using cubic interpolation
volcanobig = resize_matrix(volcano, scale=3, method="cubic")
volcanobig %>%
sphere_shade() %>%
plot_map()
}
Run the code above in your browser using DataLab