[R] Barplot legend position
Ingmar Visser
I.Visser at uva.nl
Fri Oct 13 13:29:26 CEST 2006
Dear useRs,
I'm trying to create a barplot like so:
x=matrix(1:10,2,5)
barplot(x,leg=c("left","right"),besid=T)
The legend is placed in default position topright, however the data are
plotted there too. I tried controlling the legend position by adding
x="topleft" but this results in an error that x matches multiple formal
arguments.
Leaving out the legend and making a separate call to legend leaves out the
colors of bars ...
Please advice, Ingmar
More information about the R-help
mailing list