[R] How to plot the sample size on top of the bars of a barchart plot?

Marco Barbàra jabbadhutt at libero.it
Wed May 19 18:01:16 CEST 2010


Il giorno Wed, 19 May 2010 08:46:06 -0700 (PDT)
Javier <j.perez-barberia a macaulay.ac.uk> ha scritto:

> 
> Dear users,
> 
> Is there anyone how knows how to plot the sample size on top of the
> bars of a barchart plot?

Do you mean something like this?

mp <- barplot( VADeaths[1,], ylim = c( 0 , 18 ) ) 
text( mp , VADeaths[1,] + 0.5 , paste( VADeaths[1,] , "‰" ) )



More information about the R-help mailing list