Questions tagged «plotmath»

20
如何更改刻面标签?
我使用了以下ggplot命令: ggplot(survey, aes(x = age)) + stat_bin(aes(n = nrow(h3), y = ..count.. / n), binwidth = 10) + scale_y_continuous(formatter = "percent", breaks = c(0, 0.1, 0.2)) + facet_grid(hospital ~ .) + theme(panel.background = theme_blank()) 生产 我想将构面标签更改为较短的内容(例如Hosp 1,Hosp 2...),因为它们现在太长了,看起来局促(不能选择增加图形的高度,这会占用太多空间)该文档)。我查看了facet_grid帮助页面,但不知道如何处理。
230 r  ggplot2  symbols  facet  plotmath 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.