Cant not arrange barplots in one page
p3<-barplot(Fehleranzahl_aktuell$Anzahl_Fehler,names.arg=Fehleranzahl_aktuell$Ursachentext,col=c("blue"),xlab="Anzahl Fehler",horiz = TRUE,
las=2,las=1,top = "Fehler aktuelle Buchungsperioden",xlim=c(0,Anzahl_Max))
Anzahl_Max=max(Fehleranzahl$Anzahl_Fehler)
p4<-(barplot(Fehleranzahl$Anzahl_Fehler,names.arg=Fehleranzahl$Ursachentext,col=c("blue"),xlab="Anzahl Fehler",horiz = TRUE,
las=2,las=1,main = "Kumulierte Fehler 12 Buchungsperioden",xlim=c(0,Anzahl_Max+5)))
grid.arrange(p1, p2, nrow = 2)
I get to following error:
Error in plot_to_gtable(x) : Argument needs to be of class "ggplot", "gtable", "grob", "recordedplot", or a function that plots to an R graphicsdevice when called, but is a matrix