Re: [R] Labeling a plot's x-axis with 12 strings, vertically oriented.

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Wed, 21 May 2008 13:03:01 -0600

Here is one example:

> y <- rnorm(12)
> x <- 1:12
>
> par(mar=c(10, 4, 4, 1)+0.1)
> plot(x,y, xlab='', xaxt='n')
> axis(1, at=x, labels=month.name, las=2)
>

See help on par and axis for details.

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




> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of John
> Sent: Wednesday, May 21, 2008 12:56 PM
> To: r-help_at_r-project.org
> Subject: [R] Labeling a plot's x-axis with 12 strings,
> vertically oriented.
>
> Hello,
>
> I really enjoy using R for my plotting. I have a modest plot,
> containing
> 24 data points, across 2 lines,12 points each. Ideally, the
> x-axis would be labeled with a series of strings, oriented
> vertically. Here is the R container holding the Search strings:
>
> > Search
> [1] Route To: NCENGR

> Status: Open
> CR Route To: NCENGR
> [3] Status: Cancel Route To: TEST1 Status: ENG REQ

> Route To: TDELLE
> [5] (*) Customer Name: * (*)
> Customer Name: S*IT*
> [7] (*) Customer Name: SMITH (*) Address:

> 1***
> [9] (*) Address: 1** S**** ST Route To:

> NCS
> [11] Route To: NCS From Date: 01/01/2000 Name:
> SMITH
> 12 Levels: (*) Address: 1** S**** ST (*) Address:
> 1*** ... Status: Open CR Route To: NCENGR
>
>
> Is there a function to define the x-axis, using the above 12
> strings as axis tick labels, from 1 - 12, vertically
> oriented? Any help would be appreciated, as my current work
> around is tedious, and not asthetically pleasing.
>
> Cheers,
>
> John
>
> ______________________________________________
> 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.
>
______________________________________________ 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 Wed 21 May 2008 - 19:07:30 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 21 May 2008 - 19:30:43 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