colormaker | R Documentation |
This module provides a drop-down for picking an RColorBrewer color palette and provides that palette given a reactive which supplied the required number of colors.
colormaker(input, output, session, getNumberCategories)
input |
Input object |
output |
Output object |
session |
Session object |
getNumberCategories |
A reactive supplying the number of categories that require a color. |
This function is not called directly, but rather via callModule() (see example).
output An HTML tag object that can be rendered as HTML using as.character()
callModule(colormaker, "myid", getNumberCategories)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.