Closed jguppy closed 2 years ago
@jguppy This is fixed now in latest github version. The issue is that the interactive parameters for geom_boxplot_interactive are attached to the boxplot itself, not to the points. Because the dataset is converted by boxplot stat and the point information is lost. The previous behavior was not optimal but at least it could show the y point.
Now you can supply interactive parameters for the outliers by prefixing them with outlier.
prefix.
For example:
Plot8 <- ggplot(data = DDD, aes(y = IMD))+
geom_boxplot_interactive(aes(tooltip = mkr, data_id = mkr, group = map,
outlier.tooltip=paste("I am an outlier at:", IMD )))
Hi,
I've been trying to generate a grid_plot containing two _geom_smoothinteractive/_geom_pointinteractive plots, and a third _geom_boxplotinteractive.
The tooltip designation for the geom_smooth and geom_point work as described, however for the boxplot, the tooltip for the outliers shows the y value itself, rather than the tooltip value assigned. In this use case the ID of the outlier data point is particular interest and I would like it to link across as intended to the other plots in the grid (see example code below).
This occurs when generating a single boxplot as well. Looking at the code associated with
geom_boxplot_interactive()
line 89 looks to hard code the tooltip option rather than inherit provided aesthetics.I can understand in cases where no tooltip is provided that this would be the standard use for most people but, this breaks functionality when linking in with the other plot types.
Is this intended? And is it possible to have this only set to the y value if no tooltip aes is provided?
Thanks for your help with this,