Creates a standardized tagList of the inputs that set a continuous colour scale, for a plotly figure with a colorbar such as a heatmap:
Details
colorscale.colors- The five colour stops, lowest value first, as amultiColorPicker()(UI: "Color Scale", default: the "RdYlBu" preset). Indefaults, five colours, named by stop or in ordercolorscale.palette- The preset selected, one of "RdYlBu", "Jet", "Blue-White-Red", "Viridis", "Magma", or "Cividis". Set indefaultsonlycolorscale.reverse- Run the colours from high to low (UI: "Reverse Colors", default: FALSE)colorscale.min- Value at the lowest colour (UI: "Scale Min", default: NA, the data's minimum)colorscale.mid- Value at the middle colour (UI: "Scale Mid", default: NA, the centre of the limits)colorscale.max- Value at the highest colour (UI: "Scale Max", default: NA, the data's maximum)colorbar.title- Title of the colorbar (UI: "Colorbar Title", default: "Value")
Pass the inputs to resolve_colorscale(), and restore them with
reset_colorscale_inputs(). The picker's five stops are fixed, so it needs no
renderUI() and no setup_group_colors() store: read it directly, as
isolate_fn(input$colorscale.colors).
The colorbar's fonts and visibility follow the Legend tab, through
apply_legend_styling().