[R] barplot() options for intervals on axes

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Dec 6 15:39:14 CET 2004


Sebastien Moretti wrote:

> Hello,
> I am a beginner with R. I read many tutorials and the FAQ but I cannot solve 
> my problem. 
> I use barplot() to view my graph. I try to get more interval marks on y axis.
> I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this 
> with barplot().

See ?par and ?axis.
You might want to omit the y-axis completely at first (argument 
yaxt="n") and add one manually useing axis(2, ....).


> I seek for another option to print y values on my bars like on the graph of 
> the R homepage: http://www.r-project.org/

Click on the image and see the code how it was generated.


Uwe Ligges

> Thanks for your help.
>




More information about the R-help mailing list