[19099] in s-news-athena
RE: [S] SP2000, Trellis, and scripts
daemon@ATHENA.MIT.EDU (Rick Ditmars)
Thu Sep 2 16:27:29 1999
Message-Id: <01BEF54E.C0C0D630.rditmars@geomega.com>
From: Rick Ditmars <rditmars@geomega.com>
To: Rick Ditmars <rditmars@geomega.com>,
"'Prof Brian D Ripley'"
<ripley@stats.ox.ac.uk>
Cc: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Date: Thu, 2 Sep 1999 14:23:39 -0600
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Thank you again, Prof. Ripley.
There is certainly a lot to digest to get up to speed with trellis, but it
seems worth it.
By "aligning the axes" I mean that I want the reader to be able to directly
see where the data displayed in the histogram comes from by inspecting the
strip plot below. Currently the two axes are scaled the same. However,
listing the factor names (wells) on the left side of the strip plot shifts
the plot to the right relative to the histogram. I need (read 'want') to
adjust the margins on the histogram to shift it slightly to the right.
For background, I am dealing with groundwater chemistry in 'background'
wells. The distribution of the chemical concentrations shown in the
histograms is strongly bimodal. The strip plots suggest that the bimodal
distribution is an artifact of the age and locations of the wells; the
older wells (with more data) happen to be located near the extremes of the
spatial distribution. The younger wells (with little data) seem to fill in
the saddle between the two humps. Thus the bimodal sample does not appear
to indicate a bimodal population. Also, by highlighting the two groups in
the strip plot (alluvial and bedrock wells) it is apparent that these two
systems are strongly connected, as is indicated by hydrologic data from the
site.
This is really powerful stuff!
Thanks again,
Rick Ditmars
Sr. Geophysicist
Geomega
Boulder, CO
rditmars@geomega.com
www.geomega.com
----------
From: Prof Brian D Ripley[SMTP:ripley@stats.ox.ac.uk]
Sent: Thursday, September 02, 1999 12:04 PM
To: Rick Ditmars
Cc: 's-news@wubios.wustl.edu'
Subject: RE: [S] SP2000, Trellis, and scripts
On Thu, 2 Sep 1999, Rick Ditmars wrote:
> Thank you, Prof. Ripley, for your quick response. Adding print functions
> solved the problem. As for my color selection, hard copy is on white
> background, tmp.sym makes other changes to default symbols and colors
(see
> below), and I am afraid that "Uncle Boss" over-rules "Uncle Bill" on such
> issues! ;)
Ah, but it seems you actually want this on paper, not on screen, so you
might want to try a win.printer not graphsheet colour scheme for trellis.
If you use trellis.device("win.printer"), you will use
device.call$background.color <- "Bright White"
(see trellis.device). It helps to get into Trellis's broader mindset.
> "Completions" only has two levels so I only modified the first two
> defaults. I increased the size of the symbols because ultimately the
> histograms and strip plots will be stacked on one page (portrait) and
with
> the reduction the default size is too small. By the way, the combination
> is being accomplished by exporting to .wmf and handing over to our
talented
> graphics artists who use Adobe Illustrator to combine the plots on one
> page, align the x-axes of the two plots, and make other prettifications.
I
> have been able to do things like align axes with traditional graphics by
> tweeking various par() settings, but have not discovered how to do this
> with trellis graphics. If this can be accomplished with trellis graphs,
it
> would remove one more burden off of the graphics staff.
Can you tell us what you mean by align? You might want to use
relation="same" in a scales argument to your Trellis calls. See
?trellis.args. I suspect you also want to set the device sizes in the
trellis.device calls.
After a lot of reluctance when it first came out, I learnt how to work
with Trellis not against it, but the information is not easy to find.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news