r4ds/rmarkdown-demos/5-parameters.Rmd

21 lines
417 B
Plaintext

---
title: "Visualizing the ocean floor"
output: html_document
params:
data: "hawaii"
---
```{r include = FALSE}
library(marmap)
library(ggplot2)
```
The [marmap](https://cran.r-project.org/web/packages/marmap/index.html)
package provides tools and data for visualizing the ocean floor. Here
is an example contour plot of marmap's ``r params$data`` dataset.
```{r echo = FALSE}
autoplot(get(params$data))
```