##----------------------------------------------------------------------------##
## UI elements to set color scale.
##----------------------------------------------------------------------------##
output[["expression_projection_color_scale_UI"]] <- renderUI({
selectInput(
"expression_projection_color_scale",
label = "Color scale",
choices = c("YlGnBu", "YlOrRd","Blues","Greens","Reds","RdBu","Viridis"),
selected = "YlGnBu"
)
})
## make sure elements are loaded even though the box is collapsed
outputOptions(
output,
"expression_projection_color_scale_UI",
suspendWhenHidden = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.