The code below demonstrates two color palettes in the viridis package. Each plot displays a contour map of the Maunga Whau volcano in Auckland, New Zealand.

Viridis colors

image(volcano, col = viridis(200))

Magma colors

image(volcano, col = viridis(200, option = "A"))

## [1] 7
image(volcano, col = viridis(200, option = "A"))
The R Markdown Example

The R Markdown Example

knitr::opts_chunk$set(echo = FALSE)
x= rnorm(10, 0, 1)
print("echo")
## [1] "echo"

Today’s day is 2018-04-28

## [1] "The above was an inline code"
plot of 10 randowm numbers with standard deviation = 10

plot of 10 randowm numbers with standard deviation = 10