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
ggplotly drops labels applied to scale_y_discrete with geom_segment.
This pattern is useful where geom_segments are to be ordered by an auxiliary variable in order to cope with labels with tied sorting scores, see http://stackoverflow.com/a/32333974/1659890.
Issue described
ggplotly
dropslabels
applied toscale_y_discrete
withgeom_segment
.This pattern is useful where
geom_segment
s are to be ordered by an auxiliary variable in order to cope withlabels
with tied sorting scores, see http://stackoverflow.com/a/32333974/1659890.Steps to replicate
Using ggplot2 generate the following plot:
Code is as follows:
Note the use of projectID as breaks for the y axis, to which I provide labels via
scale_y_discete
.Providing the above ggplot to
ggplotly
removes the nicely formatted labels on the y-axis, as well as the ordering:ggplotly(gantt)
The text was updated successfully, but these errors were encountered: