knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
You can install srtmVN
from GitHub
# install.packages("devtools") devtools::install_github("epix-project/srtmVN", build_vignettes = TRUE)
Once installed, you can load the package:
library(srtmVN)
The RasterLayer
DEM from SRTM can be retrieved with the getsrtm
function:
srtm <- getsrtm()
It's a RasterLayer
object:
srtm
that can be plotted with the plot
method:
plot(srtm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.