Skip to content

Instantly share code, notes, and snippets.

@kellobri
Created May 22, 2023 18:22
Show Gist options
  • Save kellobri/e071806a0ebe59e8e05c6deb572e2ffb to your computer and use it in GitHub Desktop.
Save kellobri/e071806a0ebe59e8e05c6deb572e2ffb to your computer and use it in GitHub Desktop.
---
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}
data(list = params$data)
autoplot(get(params$data))
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment