Skip to content

box type in Hmisc xYplot

5 messages · Cade, Brian, David Winsemius, Bert Gunter

#
Does anyone know how to change the box type in Hmisc package function
xYplot.  I want only the left and bottom axes drawn, similar to what I
would accomplish with bty="l" argument in plot() function.  bty= argument
did not do anything for me in xYplot().

Brian

Brian S. Cade, PhD

U. S. Geological Survey
Fort Collins Science Center
2150 Centre Ave., Bldg. C
Fort Collins, CO  80526-8818

email:  cadeb at usgs.gov <brian_cade at usgs.gov>
tel:  970 226-9326
#
Frank switched over to lattice so base-graphics arguments are not necessarily honored (unless they're shared with lattice::xyplot). So you need to think how you would specify the options in lattice::xyplot and then try to pass those arguments, since there is a "dots" mechanism. I tried finding a solution in Sarkar's Lattice book but didn't come up with anything. The "box" settings I found applied to bwplot "boxes".

(Not attempting example since no data offered. You might consider searching the archives.)
#
I do not know about xYplot, but the "scales" argument controls axes in
xyplot. For example:

scales = list(alternating = 1)

would draw axes on left/bottom ...  see ?xyplot for details and subtleties.

Again, might not work for xYplot.

Cheers,
Bert
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Sep 15, 2016 at 1:32 PM, David Winsemius <dwinsemius at comcast.net> wrote:
#
No even in xyplot() the scales argument is not eliminating plotting of the
top and right graph axes.  It is not the scale of the axes I want
eliminated but the actual lines.  But thank you for trying.

Brian

Brian S. Cade, PhD

U. S. Geological Survey
Fort Collins Science Center
2150 Centre Ave., Bldg. C
Fort Collins, CO  80526-8818

email:  cadeb at usgs.gov <brian_cade at usgs.gov>
tel:  970 226-9326
On Thu, Sep 15, 2016 at 2:44 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:

            

  
  
#
Searching the archives "scores" again:

https://stat.ethz.ch/pipermail/r-help/2007-September/140098.html