You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hoverOpts options of a plot area seems to provides wrong mouse coordinates, if a ggplot object is contained in the plot area using the option coord_fixed.
When having a wide browser window (such that coord_fixed causes space in the left and in the right of the plot object) and positioning the mouse pointer near to the origin we get too high values for the x-value. It seems that coord_fixed is ignored by hoverOpts.
I already posted this on SO, where you also see a screenshot illustrating the problem:
The
hoverOpts
options of a plot area seems to provides wrong mouse coordinates, if a ggplot object is contained in the plot area using the optioncoord_fixed
.Here is a minimal example:
When having a wide browser window (such that
coord_fixed
causes space in the left and in the right of the plot object) and positioning the mouse pointer near to the origin we get too high values for the x-value. It seems thatcoord_fixed
is ignored byhoverOpts
.I already posted this on SO, where you also see a screenshot illustrating the problem:
http://stackoverflow.com/questions/35659823/mouseover-coordinates-in-ggplot-shiny-are-wrong-when-coord-fixed-is-set
The text was updated successfully, but these errors were encountered: