Description Usage Arguments Value Author(s) See Also Examples

Returns color(s) that are a linear interpolation between two colors

these colors are suitable for shading shapes

1 2 | ```
shadepalette(n = 100, endcol = "red", inicol = "white",
interval = c(0.0, 1.0))
``` |

`n ` |
number of colors. |

`endcol ` |
final color. |

`inicol ` |
initial color. |

`interval ` |
interval *to* where to interpolate. |

a vector of character strings giving the interpolated colors in hexadecimal format

Karline Soetaert <[email protected]>

`intpalette`

, `grey`

, `femmecol`

`colorRamp`

for comparable R functions.

1 2 3 | ```
shadepalette(n = 10, "white", "black")
image(matrix(nrow = 1, ncol = 100, data = 1:100),
col = shadepalette(100, "red", "blue"), main = "shadepalette")
``` |

shape documentation built on Feb. 9, 2018, 6:08 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.