[R] Text in barplot.

jim holtman jholtman at gmail.com
Mon Aug 24 14:33:10 CEST 2009


?strwrap

On Mon, Aug 24, 2009 at 3:53 AM, koj<jens.koch at gmx.li> wrote:
>
> Dear all,
>
> i want to display a text in a barplot.
>
> Actual I simply work with the following lines:
> text(0.3,0.2,substring(teammembers.paint,1,140),cex=0.45,pos=4,srt=90)
> text(0.48,0.2,substring(teammembers.paint,141,1000),cex=0.45,pos=4,srt=90)
>
> The problem is, that "teammembers.paint" could be very long, so I split text
> with substring - but this is no good solution because the separation must be
> fixed.
>
> Is there any other possibility to display a long text in a nicer way, e.g in
> a box with the possibility of a line-break?
>
> Thank you very much in advance,
>
> Jens.
> --
> View this message in context: http://www.nabble.com/Text-in-barplot.-tp25111937p25111937.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?




More information about the R-help mailing list