Monday, 28 August 2023

Make a plotly R with interactive colors chosen by the user

I have some Shiny apps that are running. However, some contain graphics that may be of public interest. Thus, I am looking for a solution similar to the image below, from Infogram, where it is possible to edit the colors of the graph in a web environment for later download.

enter image description here

Is it possible to do something similar in Shiny R? Being Plotly, maybe add a little plot configuration button on the toolbar? If Plotly is not possible, do you know of a similar package that allows this?

The "top" would be:

enter image description here

A plotly R code example

library(plotly)
fig <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
fig


from Make a plotly R with interactive colors chosen by the user

No comments:

Post a Comment