s-news
[Top] [All Lists]

Fw: axes tick labels ['Watchdog': checked]

To: s-news@lists.biostat.wustl.edu
Subject: Fw: axes tick labels ['Watchdog': checked]
From: Paul Matthias Diderichsen <paulmatthias.diderichsen@abbott.com>
Date: Wed, 16 Aug 2006 12:05:26 +0200

Let me share with the newsgroup the solution that I received per email:

Is this what you want?

df=data.frame(response=rnorm(100),time=1:100)
xyplot(response~time,df,scales=list(x=list(at=seq(0,96,24),labels=paste(seq(0,96,24),"hr",sep=''))))


Thanks you very much - this was exactly what was needed! (I did actually read the section about scales in the trellis.args manual before posting to the newsgroup. However, I was apparently too dim to get it... ;-) )


PMD
----- Weitergeleitet von Paul Matthias Diderichsen/LUDWIGSHAFEN/GPRD/ABBOTT am 16.08.2006 12:01 -----
"XXX" <xxx@xxx.com>

16.08.2006 11:55

An
"Paul Matthias Diderichsen" <paulmatthias.diderichsen@abbott.com>
Kopie
Thema
RE: [S] axes tick labels ['Watchdog': checked]





Is this what you want?

df=data.frame(response=rnorm(100),time=1:100)
xyplot(response~time,df,scales=list(x=list(at=seq(0,96,24),labels=paste(seq(0,96,24),"hr",sep=''))))

good luck,
XXX

-----Original Message-----
From:
s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu]On Behalf Of Paul Matthias Diderichsen
Sent:
Wednesday, August 16, 2006 11:54 AM
To:
s-news@lists.biostat.wustl.edu
Subject:
[S] axes tick labels


Dear S-plus Gurus,

somebody asked me to do a xyplot of some data versus time. No problem, I said. Then, they told me that the ticks and labels along the time axis (abscissa) were to be multiples of 24 (hours). No problem, I repeated, anticipating none. But - alas - it did turn out to be a problem.


Please let me know if you have any ideas how to accomplish this - dirty workarounds are accepted. ;-) Also please tell me, if you are relatively sure that this can not be done. More generally, I am looking for a solution similar to matlab's XTick=[vector of positions on the axes where ticks are to appear] and XTickLabels={array of strings}.



Thanks a lot, Paul M. Diderichsen.

============================================================================================================================

The information contained in this communication is confidential, may be subject to legal privileges, may constitute inside information, and is intended only for the use of the addressee. It is the property of Abbott Laboratories or its relevant affiliate. Unauthorized use, disclosure or copying of this communication or any part thereof is strictly prohibited and may be unlawful. If you have received this communication in error, please notify Abbott Laboratories immediately by return e-mail and destroy this communication and all copies thereof, including all attachments.

=============================================================================================================================

============================================================================================================================
The information contained in this communication is confidential, may be subject to legal privileges, may constitute inside information, and is intended only for the use of the addressee. It is the property of Abbott Laboratories or its relevant affiliate. Unauthorized use, disclosure or copying of this communication or any part thereof is strictly prohibited and may be unlawful. If you have received this communication in error, please notify Abbott Laboratories immediately by return e-mail and destroy this communication and all copies thereof, including all attachments.
=============================================================================================================================

<Prev in Thread] Current Thread [Next in Thread>