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
In discrete scales, the breaks are centered on groups, which can sometimes make it difficult to visually discern where groups start and end. To add more visual cues about this, I think it is a good idea to add a minor.breaks argument to discrete position scales, that subsequently puts minor panel grid lines at those positions. I also thinks it may pair well with #5287. Essentially, I'd like to have the following visual:
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.3.1
ggplot(mpg, aes(class, fill=factor(cyl))) +
geom_bar(position= position_dodge(preserve="single")) +
annotate(
"segment",
x=1.5:6.5, xend=1.5:6.5,
y=-Inf, yend=Inf,
colour='white'
) +
theme(panel.grid.major= element_blank())
In discrete scales, the
breaks
are centered on groups, which can sometimes make it difficult to visually discern where groups start and end. To add more visual cues about this, I think it is a good idea to add aminor.breaks
argument to discrete position scales, that subsequently puts minor panel grid lines at those positions. I also thinks it may pair well with #5287. Essentially, I'd like to have the following visual:But with this syntax:
Created on 2023-09-22 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: