Paul,
Don't feel like the Lone Ranger. Even after 7 years of use, I too seem too
dim to get many of the subtleties of the language. Thank goodness for all
the bright people who read and reply to the list.
Chris
Chris Leeth
U.S. Geological Survey (WRD)
Atlanta, GA
W: 770-903-9120
C: 770-826-2385
Paul Matthias
Diderichsen
<paulmatthias.did To
erichsen@abbott.c s-news@lists.biostat.wustl.edu
om> cc
Sent by:
s-news-owner@list Subject
s.biostat.wustl.e Fw: [S] axes tick labels
du ['Watchdog': checked]
08/16/2006 06:05
AM
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.
=============================================================================================================================
|