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
can someone help me with ggbreak to set up y-axis on the right? When run the following, the y-axis title did not move to right side, but ticks changed to right side. However, if I remove sale_y_break, it works. But I need to both break and position on the right at the same plot.
ggplot(data,aes(x=x,y=t,fill=fill))+
geom_bar(stat = "identity",position = position_dodge(0.9),color="black")+
theme(axis.title.x = element_blank(),legend.title = element_blank(),legend.position ="none",
axis.title.y = element_blank(),
axis.ticks.x = element_blank(),axis.ticks.length.y = unit(-1.2, "mm"))+
scale_y_continuous(expand = c(0,0),limits = c(0,38),position = "right")+
scale_y_break(c(3,5),scales = 1,expand = F)
The text was updated successfully, but these errors were encountered:
can someone help me with ggbreak to set up y-axis on the right? When run the following, the y-axis title did not move to right side, but ticks changed to right side. However, if I remove sale_y_break, it works. But I need to both break and position on the right at the same plot.
ggplot(data,aes(x=x,y=t,fill=fill))+
geom_bar(stat = "identity",position = position_dodge(0.9),color="black")+
theme(axis.title.x = element_blank(),legend.title = element_blank(),legend.position ="none",
axis.title.y = element_blank(),
axis.ticks.x = element_blank(),axis.ticks.length.y = unit(-1.2, "mm"))+
scale_y_continuous(expand = c(0,0),limits = c(0,38),position = "right")+
scale_y_break(c(3,5),scales = 1,expand = F)
The text was updated successfully, but these errors were encountered: