Maunga Whau Volcano

Maunga Whau (Mt Eden) is one of about 50 volcanos in the Auckland volcanic field. The volcano data set in R gives topographic information for Maunga Whau on a 10m by 10m grid.

The R code displayed below shall render a 3D image of Maunga Whau, based on the volcano data set, using the plotly software package.

The plotly software package also enables the 3D image to be rotated on all three axes, and zoomed in and out.

# load volcano data set
        data(volcano)

# load plotly package
        library(plotly)

# create interactive 3D image
        plot_ly(z = ~volcano) %>% add_surface() %>% layout(autosize = F, width = 1000, height = 800)