I'm trying to create a geom_bar with:
<<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)
@
After compiling the Rnw-File I'm getting in the pdf-output file:
ymax not defined: adjusting position using y instead
I'd appreciate any help. thanks!
suppressMessages()
? setmessage=FALSE
in theknitr
chunk options?, but I've seen it often) – Quadrangularwarning = FALSE
in the knitr chunk options usually works for me. – Setbackwarning=FALSE
didn't work for me butmessage=FALSE
. knitr_1.10.5 & R version 3.2.0 on OS X – Haematogenesis