Show subtitle in tooltip when hovering over diffuse diagram in Rbokeh

I am creating an interactive scatter plot with Rbokeh. My data is stored in a data table.

data(iris)
library(data.table)
dt.iris <- data.table(iris)
library(rbokeh)
figure() %>%
  ly_points(Sepal.Length, Sepal.Width, data = dt.iris, 
            hover = c(Petal.Width, Petal.Length,Species)) 

      

Instead of printing numeric or string values ​​in the tooltip on hover, as implemented in the above code, I would like to draw the subtitle tooltip associated with this datapoint. For example, if the data point I was targeting corresponds to the aperture dataset. Breeds are "versicolor", the subheading should be something like Petal.Width and Petal.Length for all data points that are also "versicolor".

Related post:

Interactive scatterplots in R, pivot / hover overlay / tooltip as user-provided function

There is an answer from this post that uses the packages in a systematic and brilliant way together, but I would like to show my plot in a hint . Also, I would rather avoid using Plotly if possible.

+3
r shiny ggplot2 data.table rbokeh


source to share


No one has answered this question yet

See similar questions:

3
Interactive scatter plots in R, pivot / hover / tooltip while working with user

or similar:

4
How do I add a non-overlapping legend to match colors to categories in pairs ()?
4
Conditional non-join
1
normalization has been applied to all columns with grouped rows
1
Scatterplot of many variables by one variable
0
It is not possible to overlay one parallel coordinate plot on top of another using the GGally package (and ggplot2) in R
0
How do I get the mouse over shortcuts in the shiny ggplot2 polar plot?
0
plotting contours on a grid of scatterplots with pairs () in R
0
Extracting rows from dataframe with variable string condition in R
0
Variable number of arguments in the decision tree r
0
How to get a scatter plot with multiple axes in R



All Articles
Loading...
X
Show
Funny
Dev
Pics