r4ds/rmarkdown-demos/5-parameters.Rmd

21 lines
417 B
Plaintext
Raw Normal View History

2016-08-19 01:40:09 +08:00
---
title: "Visualizing the ocean floor"
output: html_document
params:
data: "hawaii"
---
```{r include = FALSE}
library(marmap)
library(ggplot2)
```
2016-08-23 04:27:54 +08:00
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.
2016-08-19 01:40:09 +08:00
```{r echo = FALSE}
autoplot(get(params$data))
```