Relative Content

Tag Archive for rshinyplotly

Problematic x axis label when applying Plotly in Shiny app

The chart responds super oddly when selecting more than one state’s input. The x-axis does not show up right or show duplicated dates. The graph is not working. I tried to use a loop to over StateFull name to add a trace in the graph and could not fix it.

Problematic x axis label when applying Plotly in Shiny app

The chart responds super oddly when selecting more than one state’s input. The x-axis does not show up right or show duplicated dates. The graph is not working. I tried to use a loop to over StateFull name to add a trace in the graph and could not fix it.

Problematic x axis label when applying Plotly in Shiny app

The chart responds super oddly when selecting more than one state’s input. The x-axis does not show up right or show duplicated dates. The graph is not working. I tried to use a loop to over StateFull name to add a trace in the graph and could not fix it.

Duplicated x axis label when applying Plotly in Shiny app

The chart reponds super odd when select more than one states input. The x axis does not show up right or show duplicated dates. The graph is not working. I tried to use a loop to over StateFull name for adding a trace in the graph and was not able to get it fixed.

plotly drilldown: re-clicking the same plot object

I am creating a drilldown plot and I am basing my solution on the excellent example provided here. I have reproduced it below. This works great except that when you drilldown into the plot and then click back, and then select the same bar again it doesn’t drill back down. However, if you select a different bar it does drill down again. I’m guessing that the observeEvent(event_data("plotly_click", source = "bars"), {... part doesn’t register a click if the clicked item was the same as the last time. Is there a way to get it to recognise the same bar being clicked?

Why is plotly_legenddoubleclick becoming out of sync?

I attempt to capture plotly_legenddoubleclick events to trigger a styling event in a second plot. When the user double clicks a legend group, the group is highlighted in the corresponding scatterplot using an opacity ‘hack’. In practice, this works for the first series of double-clicks but becomes out of sync and eventually stops working.

Shiny R – plotly_legenddoubleclick out of sync

New to shiny and attempting to capture plotly_legenddoubleclick events to trigger a styling event in a second plot. When the user double clicks a legend group, the group is highlighted in the corresponding scatterplot using an opacity ‘hack’. In practice, this works for the first series of double-clicks but becomes out of sync and eventually stops working.

plot_ly removes lines from graph in my rshiny app if it is grouped

I recently developed an R Shiny application to filter and group data in rshiny. owever, I’ve encountered a specific issue that I haven’t been able to resolve. The problem arises when I attempt to group my dataframe based on the selection from a dropdown menu, which is linked to a variable named char_column_selector. When I group the dataframe using this dropdown selection, the lines in my plot disappear, making it difficult to visualize the data effectively.

Modify specific plotly trace using plotlyProxy without referencing other traces

I’m targeting a specific plotly trace with my R shiny inputs but I’d like to do so without referring to the data behind all the other traces. As seen below, updating the cylinder trace depends on an else condition. I’d like to avoid that, as in my real data, I have many other traces, rather than the one here (the sphere trace).

Modify specific plotly trace using plotlyProxy

I’m having trouble targeting a specific plotly trace with my R shiny inputs. Is it even possible to restyle a trace by its name? Alternatively can I delete and add the trace by name? I’ve seen examples of deleting the trace without using the name, but that seems to only work where you have one trace. Below is the full shiny app.