-
Notifications
You must be signed in to change notification settings - Fork 11
/
R-Markdown-Background.Rmd
37 lines (29 loc) · 1.49 KB
/
R-Markdown-Background.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
---
title: R Scrollytelling Template Project
author: IMERSS biodiversity informatics working group
date: December 30th, 2022
output: html_document
knit: (function(inputFile, encoding) {
rmarkdown::render(inputFile, encoding = encoding, output_dir = "docs") })
---
## Introduction
This project hosts a skeleton structure suitable for building out and publishing a map-based scrollytelling
interface based on R Markdown. You can build your own scrollytelling interface using R and R Markdown,
using free tools such as git, R and R studio, and publish and host it for free using [GitHub Pages](https://pages.github.com/).
This first section renders a basic vector map layer represented as an ESRI Shapefile, perhaps
[exported from a GIS system such as QGIS](https://docs.qgis.org/3.22/en/docs/user_manual/managing_data_source/supported_data.html#esri-shapefile-format).
```{r, echo=FALSE, message=FALSE}
source("scripts/vector_map_script.R")
baseMap
```
## Raster map
This section renders a map holding a raster layer represented as a GeoTIFF file. Once processed by the reknitting system described in this project's README, these two maps will be compiled into two layers
of a single map which can be reached through a linear scrollytelling interface. Any further maps
added under 2nd-level headings in this document will be compiled as further layers.
```{r, echo=FALSE, message=FALSE, warning=FALSE}
source("scripts/raster_map_script.R")
rasterMap
```
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```