My code:
library(vcd)
barplot(as.matrix(data),ylim=c(0,13),main="P wave",
xlab="number of clusters", ylab="traveltime rms(ms)",
col=c("red", "black", "green"), beside=TRUE)
legend("topright",
legend = c("fcm","gk","gg"),
fill = c( "red", "black", "green"))
My data:
5 6 7
fcm 13.0 12.5 11.8
gk 10.9 10.5 10.2
gg 12.0 11.0 10.8
I got:
Error in plot.new() : figure margins too large
What is wrong with ylim?Is there any chance that I can calculate max from data and use it or...?