[R] text in boxplots

Greg Snow Greg.Snow at intermountainmail.org
Thu Sep 6 22:40:59 CEST 2007


It works for me:

> boxplot( split(state.x77[,'Frost'], state.region) )
> text( 1:4, -5, rep('test',4), col='green' )

Show us what you tried and maybe we can be of more help,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Yves Moisan
> Sent: Thursday, September 06, 2007 2:34 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] text in boxplots
> 
> 
> Hi All,
> 
> I can't get text to print on a boxplot using the 'text' 
> command.  'mtext'
> works, but not 'text'.  Is it a matter of boxplots being 
> drawn over text? 
> Pointers appreciated.
> 
> TIA,
> 
> YVes
> --
> View this message in context: 
> http://www.nabble.com/text-in-boxplots-tf4394528.html#a12530892
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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