18 lines
347 B
Plaintext
18 lines
347 B
Plaintext
---
|
|
title: "More colors"
|
|
output: html_document
|
|
---
|
|
|
|
```{r include = FALSE}
|
|
colorFunc <- "terrain.colors"
|
|
```
|
|
|
|
Base R comes with many functions for generating colors. The code
|
|
below demonstrates the `r colorFunc` function.
|
|
|
|
## `r colorFunc`
|
|
|
|
```{r fig.cap = "The Maunga Whau volcano.", echo = FALSE}
|
|
image(volcano, col = get(colorFunc)(200))
|
|
```
|