Tanaka

[This article was first published on r.iresmi.net, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

A photo of Mount Fuji volcano

Mount Fuji sunrise – CC-BY-NC-ND by Gilbert Sopakuwa

Day 23 of 30DayMapChallenge: « 3D » (previously).

The Tanaka contours (Tanaka 1950) are a method of displaying 3D as a succession of terraces.

library(elevatr)
library(terra)
library(tanaka)
ele <-  get_elev_raster(data.frame(x = 138.727350,
                                   y =  35.360681),
                        prj = "EPSG:4326",
                        z = 10) |> 
  as("SpatRaster")
par(mar = c(0,0,0,0))

tanaka(ele, 
       breaks = 1:14*250,
       legend.pos = "right",
       shift = 0.001,
       legend.title = "富士山\nElevation (m)",
       col = viridis::magma(n = 15),
       add = FALSE)

Map of Mount Fuji in Tanaka style

Figure 1: Mount Fuji

References

Tanaka, Kitiro. 1950. “The Relief Contour Method of Representing Topography on Maps.” Geographical Review 40 (3): 444–56. https://doi.org/10.2307/211219.
To leave a comment for the author, please follow the link and comment on their blog: r.iresmi.net.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)