Custom hover compare on plotly which will highlight based on category instead of x or y?
I am asking this question as an extension of a previous question. Curiosity lead me to wonder if you could modify the hovermode such that in a stacked percent chart, it will highlight the percent values of all the segments of the same color, one from each bar. Essentially the “x” hover mode in a normal chart. but since we are stacking different values on top of each other the default x mode does not seem to work intuitively this way.
Interactive barchart in R using plotly
I would like to recreate my ggplot barchart with plotly to make it interactive. However, I’m not able to get the y axis to be my desired variable and instead get the following error: Error in eval(expr, data, expr_env) :
object ‘genome_size_in_Mb’ not found.