[R] how to include bar values in a barplot?

John Kane jrkrideau at yahoo.ca
Wed Aug 8 19:39:21 CEST 2007


Do you mean like this?

my.values=100000:100005
 x <- barplot(my.values, ylim=c(0,110000))
  text(x, my.values, labels=my.values, pos=3)


It is very bad practice and OOo should have its
fingers slapped for perpetuating such a form.

--- "Donatas G." <dgvirtual at akl.lt> wrote:

> How do I include bar values in a barplot (or other R
> graphics, where this 
> could be applicable)? 
> 
> To make sure I am clear I am attaching a barplot
> created with OpenOffice.org 
> which has barplot values written on top of each
> barplot. 
> 
> -- 
> Donatas Glodenis
> http://dg.lapas.info
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>



More information about the R-help mailing list