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
Is there a way to set the tick labels for the first subplot when using scale_y_break? That function's ticklabels = argument sets the ticks for the other subplots but not the first. For instance I have a barplot where values are in the ~450-500 range, so I'm breaking at 20 and jumping to 450 but I'd like the bottom tickmarks to only be 0 and 20 not 0, 5, 10, and 20.
Thanks
The text was updated successfully, but these errors were encountered:
@araikes@erinmgraham I just found out that you can directly use scale_y_continuous(breaks = c(0,20)) to set the breaks for the first part.
e.g.
ggplot(xxxx) +
scale_y_continous(breaks = c(0, 20)) + # tick label for first
scale_y_break(breaks = c(20, 450), ticklabels = c(50,400)) # tick label for second at 50 and 400
Hi @GuangchuangYu,
Is there a way to set the tick labels for the first subplot when using
scale_y_break
? That function'sticklabels =
argument sets the ticks for the other subplots but not the first. For instance I have a barplot where values are in the ~450-500 range, so I'm breaking at 20 and jumping to 450 but I'd like the bottom tickmarks to only be 0 and 20 not 0, 5, 10, and 20.Thanks
The text was updated successfully, but these errors were encountered: