-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
70 lines (50 loc) · 2.29 KB
/
README.Rmd
File metadata and controls
70 lines (50 loc) · 2.29 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
warning = FALSE,
message = FALSE,
out.width = "100%"
)
library(quantarcticR)
## for vignette purposes, and if this is Ben's computer, use a persistent cache_dir
if (grepl("ben_ray", qa_cache_dir())) qa_cache_dir("c:/data/Quantarctica3")
```
<!-- badges: start -->
[](https://github.com/SCAR/quantarcticR/actions/workflows/R-CMD-check.yaml)
[](https://www.tidyverse.org/lifecycle/#maturing)
[](https://codecov.io/gh/SCAR/quantarcticR?branch=master)
<!-- badges: end -->
# quantarcticR
Quantarctica is a collection of Antarctic geographical datasets which works with the free, cross-platform, open-source software QGIS. It includes community-contributed, peer-reviewed data from ten different scientific themes and a professionally-designed basemap.
The `quantarcticR` package provides access to Quantarctica data sets for R users, **without** needing QGIS to be installed. R users can use these data sets with e.g. the `raster`, `sp`, or `sf` packages.
## Installation
You can install the development version of quantarcticR from GitHub with:
```{r eval = FALSE}
remotes::install_github("SCAR/quantarcticR")
```
## Example
```{r example}
library(quantarcticR)
```
`quantarcticR` will download data from whichever Quantarctica mirror has been selected. The USA mirror is chosen by default, but you can change this: see `help("qa_mirror")`.
List all available datasets:
```{r example2}
ds <- qa_datasets()
head(ds)
```
Fetch one and plot it:
```{r example3}
res <- qa_get("ADD Simple basemap", verbose = TRUE)
library(raster)
plot(res)
```
See the [introductory vignette](https://scar.github.io/quantarcticR/articles/intro.html) for more information.
## See also
- [qgisprocess](https://CRAN.R-project.org/package=qgisprocess)
- [RQGIS](https://github.com/r-spatial/RQGIS) ARCHIVED: provides an R-QGIS interface, via Python middleware.