모든 곳을 찾고 있지만 대답을 찾을 수 없습니다.ggplot x 축의 레이블 사이의 간격 R
칸트는 x 점 사이의 간격을 알아냅니다. 내가 찾은 모든 것은 vjust에 관한 것입니다.
내 그래프 : http://imgur.com/kcJ5MCv
코드 : 나는 한 시간 반 찾고있다
df.307b<-read.csv('307B.csv')
colnames(df.307b)<-c('Chr', 'Reads')
p<-ggplot(data=df.307b, aes(Chr, Reads)) + geom_bar(stat="identity")
require(scales)
p + theme(axis.text.x = element_text(angle = 90, hjust = 1)) + scale_y_continuous(labels = comma) + ggtitle("307B_WES_Read_distribution")
. 시련을 겪었습니다.
고마워요
이 줄 주위를 돌아 다니면 작동하는지 확인하십시오. geom_bar (width = ??, position = position_dodge (width = ??)) – KFB
http://stackoverflow.com/questions/12910841/custom-spacing- ~ x 축 레이블 - 인 - ggplot – KFB