-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
57 lines (41 loc) · 1.29 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# srtmVN
<!-- badges: start -->
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/epix-project/srtmVN?branch=master&svg=true)](https://ci.appveyor.com/project/epix-project/srtmVN)
[![Travis build status](https://travis-ci.org/epix-project/srtmVN.svg?branch=master)](https://travis-ci.org/epix-project/srtmVN)
[![Codecov test coverage](https://codecov.io/gh/epix-project/srtmVN/branch/master/graph/badge.svg)](https://codecov.io/gh/epix-project/srtmVN?branch=master)
<!-- badges: end -->
## Installation and loading
You can install `srtmVN` from [GitHub](https://github.com/epix-project/srtmVN)
```{r eval = FALSE}
# install.packages("devtools")
devtools::install_github("epix-project/srtmVN", build_vignettes = TRUE)
```
Once installed, you can load the package:
```{r}
library(srtmVN)
```
## Usage examples
The `RasterLayer` DEM from SRTM can be retrieved with the `getsrtm` function:
```{r}
srtm <- getsrtm()
```
It's a `RasterLayer` object:
```{r}
srtm
```
that can be plotted with the `plot` method:
```{r}
plot(srtm)
```