[R] percentage in R

2007-06-21 Thread genomenet
Hi There, How to display a number in the formation of percentage? For example, a=0.25, how to display 25%? Thank you very much. Van __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] percentage in R

2007-06-21 Thread Christoph Heibl
Hi, do you want to display the proportion as a character string? This would be simple: a - 0.25 aa - paste(a*100, %, sep=) aa [1] 25% Cheers, Christoph On 21.06.2007, at 22:45, [EMAIL PROTECTED] wrote: Hi There, How to display a number in the formation of percentage? For

Re: [R] percentage in R

2007-06-21 Thread Roland Rau
[EMAIL PROTECTED] wrote: Hi There, How to display a number in the formation of percentage? For example, a=0.25, how to display 25%? if you write 'how to display' I guess you mean in a plot? a - 0.25 plot(0:10, 0:10, type=n) text(x=5, y=5, labels=paste(round(a*100,0), %, sep=)) does this