colormaker: The output function of the colorby module

View source: R/colormaker.R

colormakerR Documentation

The output function of the colorby module

Description

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.

Usage

colormaker(input, output, session, getNumberCategories)

Arguments

input

Input object

output

Output object

session

Session object

getNumberCategories

A reactive supplying the number of categories that require a color.

Details

This function is not called directly, but rather via callModule() (see example).

Value

output An HTML tag object that can be rendered as HTML using as.character()

Examples

callModule(colormaker, "myid", getNumberCategories)


pinin4fjords/shinyngs documentation built on Feb. 28, 2024, 10:19 a.m.