Description Usage Arguments Value Examples

Create a color generating function from a vector of colors

1 |

`col` |
a vector of colors |

a function that generates a vector of colors interpolated among the colors in `col`

1 2 3 | ```
cs <- makeColorscheme( c('red','white','blue') )
cs(10)
cs(10, alpha=.5)
``` |

```
Loading required package: dplyr
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: lattice
Loading required package: ggformula
Loading required package: ggplot2
New to ggformula? Try the tutorials:
learnr::run_tutorial("introduction", package = "ggformula")
learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix
The 'mosaic' package masks several functions from core packages in order to add
additional features. The original behavior of these functions should not be affected by this.
Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.
Attaching package: 'mosaic'
The following object is masked from 'package:Matrix':
mean
The following objects are masked from 'package:dplyr':
count, do, tally
The following objects are masked from 'package:stats':
IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
quantile, sd, t.test, var
The following objects are masked from 'package:base':
max, mean, min, prod, range, sample, sum
[1] "#FF0000FF" "#FF0000FF" "#FF0000FF" "#FFFFFFFF" "#FFFFFFFF" "#FFFFFFFF"
[7] "#0000FFFF" "#0000FFFF" "#0000FFFF" "#0000FFFF"
[1] "#FF000080" "#FF000080" "#FF000080" "#FFFFFF80" "#FFFFFF80" "#FFFFFF80"
[7] "#0000FF80" "#0000FF80" "#0000FF80" "#0000FF80"
```

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.