[S] Re: Plot axis dimensions in v 3.3

Steve Bousquin (sbous@lamar.colostate.edu)
Sun, 03 May 1998 10:02:02 -0600

Re my previous message, I thank respondants for several clever
suggestions, but my goal is not to place text within the graphsheet area
(I want to make the caption in WordPerfect), nor to move the individual
plots within the graphsheet area.

The goal is to get the 2 "extra" plots to look identical (same size and
relative axis dimensions) as the plots on previous pages, which are 12
to a sheet; and to have the sheet itself sized so that there is no
empty space between the 2 plots and the bottom of the sheet. The reason
for this is to be aable to place my caption immediately below the
plots. The caption can only be placed at the boundary of the image
(that is, the edge of the S-plus graphsheet).

I have tried playing with the win.graph height dimension, but this does
not want to be set at less than 3. I have tried plotting the extra 2
plots as

plot(x,y,type="n",axes="F",xlab="", ylab="")
plot(x,y,type="n",axes="F",xlab="", ylab="")

(thanks to Madeline for the "empty plot" idea)

. . . but the fact that the height is set to 3 makes the relative axis
dimensions of the plots different from those on the previous sheets
(they are almost square instead of rectangular), and this seems to be
automatically determined to fill the space of the graphsheet.

Steve Bousquin wrote:
> I am having a problem in S-Plus 3.3 controlling the size of a graph
> sheet on which multiple plots are placed, and the relative dimensions of
> the plots.
> I have a set of plots arranged 12 on a sheet on each of several sheets.
> The last sheet has only two plots on it. I would like the last sheet to
> look consistent with the other sheets, but if I use the same command the
> sheet itself has blank space where the other 10 plots should be.
> This is a problem because when the sheets are imported into a
> wordprocessor (WordPerfect 8), the caption can only be placed at an edge
> of the full sheet (I am unable to edit the .wmf file (imported and
> converted to .wpg), so I cannot insert text within the image). On the
> "full" sheets, the caption looks fine, but on the last sheet there are
> two plots in the upper left corner, then a lot of blank space, then the
> caption at the bottom of the page, which looks absurd.
> If I produce the plots 2-up, the relative dimensions of x and y axes are
> changed.
> The commands I'm using are"
> par(mfrow=c(3,4))
> plot.ASSN2(sb.acshepne$eprat,sb.acshepne$acshepne,"acshepne",main="(a)")
> etc.
> (The "plot.ASSN2" command refers to a function that labels the x axis,
> which always has the same title).
> My question is how I can produce the last two plots with the same
> relative dimensions as the previous plots, on one sheet, with the sheet
> sized vertically so that there is no blank space between the plots and
> the bottom of the sheet, so that I can place the caption in WP
> immediately under the two plots.
> ==============================================
> Steve Bousquin
> Colorado State University
> Department of Rangeland Ecosystem Science/GDPE
> NR209
> Fort Collins, CO 80523
> sbous@lamar.colostate.edu
> ==============================================


============================================== Steve Bousquin

Colorado State University Department of Rangeland Ecosystem Science/GDPE NR209 Fort Collins, CO 80523 USA

sbous@lamar.colostate.edu ============================================== ----------------------------------------------------------------------- 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