You are on page 1of 1

Play around with the colorRampPalette() function.

Try the following simple plot:


pal <- colorRampPalette(c("red", "yellow", "blue")) x <- rnorm(100) plot(x, col = pal(100))

What happens if you just use 10 colors (i.e. pal(10)) instead of 100?

You might also like