For those who come here to look for a color picker, the previous answer using shinysky out of date (the color selection from there was moved to a package that is not under maintenance)
The shinyjs package has another set of color palettes.
library(ggplot2) library(shiny) library(shinyjs) runApp(shinyApp( ui = fluidPage( colourInput("col", "Select colour", "grey"), plotOutput("plot") ), server = function(input, output, session) { output$plot <- renderPlot({ ggplot(cars, aes(speed, dist)) + geom_point() + theme(panel.background = element_rect(fill = input$col)) }) } ))

Disclaimer: I am the author of this package.
source share