Delete comment from: One R Tip A Day
Hi Paolo!!
The code was really easy at the end, but as usual, it took more than it should have :-)
For your data, it would be like this:
barplot(height, space=0, border=NA, main="without tick lines")
or:
barplot(height, space=0, border=NA, main="with tick lines")
axis(1, tck=1)
In my case, what I wanted was to plot one of the outputs from the Structure software
(http://pritch.bsd.uchicago.edu/software/structure2_2.html), like this one:
http://img411.imageshack.us/i/barplot.jpg/
In that case, the code is like this:
barplot("mydata" border=NA, main="barplot like the one produced by Structure software")
axis(1, at=c(0, 10, 20, 30, 40, 47, 51, 55, 65, 75), tck=1, labels= c(NA, c(1:9)))
I still don't know how to put the labels before the tick line, like in the structure plot, but I don't care that much...
Here are the plots: http://img695.imageshack.us/i/onetip.jpg/
Apr 17, 2010, 10:51:37 PM
Posted to Barplots of two sets
