Plotting a Volcano
This is really just a test to see if I can get this post to show up on the site. I thought that I would play with a bit of R code while I have the chance. I can see this volcano from my window of my house so it is my Maunga at the moment and I really love walking up to the tihi. Here is a small snippet from my Pepeha:
Kei Maunga Whau ahau e noho ana
The plot below uses geospatial data, included in the R base package. I think this neatly shows the New Zealand roots of the R software package. I feel a real sense of place thinking about the well-trodden path from the mountain to the University of Auckland, city campus.
The code below comes from: Fifty ways to draw a volcano using package plot3D by Karline Soetaert
# Preamble library(plot3D) # Reduce the resolution Volcano <- volcano[seq(1, nrow(volcano), by = 3), seq(1, ncol(volcano), by = 3)]
image2D(Volcano, lighting = TRUE, rasterImage = TRUE, contour = list(col = "white", labcex = 0.8, lwd = 3, alpha = 0.5))
I will hopefully get a chance to map and describe Maunga Whau over the next little while. It is a much loved landmark and I know I’m not the only one that is fascinated by the Maunga of Auckland