rregan
August 14, 2019, 10:43pm
1
...I have a shiny app where I plot a bar graph. I have functionality to click on one of the bars to drill down into more detail. I have three of these bar graphs, and two of them work fine. However, there is one graph where I click on it, and the data shows very briefly and then it goes away. I don't know what to do.
The code for plot and the click are:
tabPanel(
"Redundant Therapy", br(),
plotOutput("redundant", click="red_click"),
br(),
htmlOutput("red_value"),
tableOutput("selected_rows_loc"),
br()
),
red_value and selected_rows_loc are what display based on the bar that is clisked on. What am I doing wrong??
hi @rregan , it's hard to say what is wrong based on this. If you could create a reproducible example, it would help a lot.
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
system
Closed
October 11, 2019, 8:26pm
3
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.