最佳答案
hjust
theme(axis.text=
中的参数做你需要的:
library(ggplot2)
library(lubridate)
s <- c(320,790,810,820,780,780,680,700,600,380,420,620,310)
d <- seq(ymd('2016-03-01'),ymd('2017-03-01'), by = '1 month')
df <- data.frame(Date=d,No.Sales=s)
ggplot(df) + geom_bar(aes(Date,No.Sales),stat="identity") +
theme_bw() +
labs(title="Condo Sales",
subtitle="Montly counts of condo sales in Toronto") +
theme(panel.border = element_blank(),
axis.text=element_text( hjust=1) )
产量:
关于r - 如何避免剪切我的 xticks?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42891881/