Re: [R] boxplot tick locations

From: Sherri Heck <sheck_at_ucar.edu>
Date: Tue, 15 Apr 2008 16:39:33 -0600

Hi Peter-

that worked wonderfully! I am having a hard time adding "labels" to the tick marks. I've tried a myriad of things. I just want to label the ticks 1- 23.
any thoughts?

thanks again for your help!

sheck

Peter Alspach wrote:
> Sherri
>
> Is this what you want?
>
> sherri <- data.frame(grp=rep(letters[1:6], 20), value=rnorm(6*20)+6)
> temp <- with(sherri, boxplot(value~grp, xaxt='n'))
> axis(1, 1:5+0.5, rep('', 5))
>
> Peter Alspach
>
>
>
>> -----Original Message-----
>> From: r-help-bounces_at_r-project.org
>> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Sherri Heck
>> Sent: Tuesday, 15 April 2008 9:32 a.m.
>> To: r-help_at_r-project.org
>> Subject: [R] boxplot tick locations
>>
>> hi all-
>>
>> i am creating a boxplot and would like to shift the x-axis
>> tick marks (named 1:23) so that the ticks are in between the
>> boxes and not centered in the middle of the boxes. i have
>> searched the help files and google and have not found what i
>> am looking for.
>>
>> does anyone know how to do this?
>>
>> thanks!
>>
>> s.heck
>> University of Colorado, Boulder
>>
>> ______________________________________________
>> 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.
>>
>>
>
> The contents of this e-mail are privileged and/or confidential to the named
> recipient and are not to be used by any other person and/or organisation.
> If you have received this e-mail in error, please notify the sender and delete
> all material pertaining to this e-mail.
>



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. Received on Tue 15 Apr 2008 - 22:47:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Apr 2008 - 00:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive