我正在尝试创建一个geom_bar,其中包括:
<<boring-plots, fig.width=5, fig.height=5, out.width='.45\\linewidth',fig.show='hold', echo=FALSE, warning=FALSE>>=
ma_at_vs_t_duh + geom_bar(stat="bin", fill="white", colour="darkgreen", width=.4) + ggtitle("Anzahl MA nach Vertragsart, \nMandant 10 und 50") +
theme(plot.title = element_text(lineheight=.6, face="bold")) +
xlab("Vertragsart") +
ylab("Anzahl MA") +
theme(axis.title.x = element_text(vjust=0.5, size=14), axis.text.x=element_text(size=10)) +
stat_bin(aes(label=..count..), geom="text", size=4, vjust=-0.5)
@
编译Rnw文件后,PDF输出文件中会出现以下内容:
ymax not defined: adjusting position using y instead
我很感激你的帮助。谢谢!
suppressMessages()
?在knitr
块选项中设置message=FALSE
?但我经常看到它)。 - Ben Bolkerwarning = FALSE
对我来说是有效的。 - joranwarning=FALSE
对我无效,但message=FALSE
有效。knitr_1.10.5 & R 3.2.0 版本在 OS X 上。 - arvi1000