Remove space on x-axis
0
0
Entering edit mode
@78ca6878
Last seen 3.1 years ago
Denmark

I've been using plotGrandLinear, unfortunately I have a lot of empty space between the y-axis and the first chromosome. Normally I would use scale_x_(expand=c(0,0)) but that doesn't work, I think it's because the plot is some kind of facet plot? Anyway, is there any way of mimicking expand=c(0,0) inside of plotGrandLinear?

plotGrandLinear(mini,aes(y=Z_FST),cutoff=5,cutoff.color="black",cutoff.size=0.2,color=a[c(1,4)],highlight.gr=o5,highlight.col="orange",ylab=expression(Z(F["ST"])),spaceline=TRUE)+ scale_y_continuous(expand=c(0,0)) + theme_bw(base_size = 22) +
theme(
plot.title = element_text(hjust = 0.5),
legend.position="none",
legend.text=element_text(size=6),
legend.title=element_text(size=8),
panel.border = element_blank(),
panel.grid.major.x = element_blank(),
panel.grid.minor.x = element_blank(),
)
ggbio • 813 views
ADD COMMENT

Login before adding your answer.

Traffic: 432 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6