# NOT RUN {
montereybay %>%
sphere_shade() %>%
plot_3d(montereybay,zscale=50,water=TRUE)
render_snapshot()
# }
# NOT RUN {
#We want to add a label to Santa Cruz, so we use the x and y matrix coordinate (x=220 and y=330)
# }
# NOT RUN {
render_label(montereybay,x=220,y=330, z=10000,zscale=50,text = "Santa Cruz")
render_snapshot()
# }
# NOT RUN {
#We can also change the linetype to dashed by setting `dashed = TRUE` (additional options allow
#the user to control the dash length)
# }
# NOT RUN {
render_label(montereybay,x=300,y=120, z=10000,zscale=50,text = "Monterey",dashed=TRUE)
render_snapshot()
# }
# NOT RUN {
#By default, z specifies the altitude above that point on the elevation matrix. We can also specify
#an absolute height by setting `relativez=FALSE`.
# }
# NOT RUN {
render_label(montereybay,x=50,y=130, z=2000,zscale=50,text = "Monterey Canyon",relativez=FALSE)
render_snapshot(clear = TRUE)
# }
Run the code above in your browser using DataCamp Workspace