[R] Help with hclust() and plot()

Tamas Papp tpapp at axelero.hu
Fri May 21 15:35:20 CEST 2004


On Fri, May 21, 2004 at 07:56:02AM -0400, Sean Davis wrote:

> The use for par is:
> 
> > plot(1:8,1:8) #you must have an open graphics window before par has an effect

Instead of making a plot you will discard anyway (since you are making
another when par() takes effect), you might want to initialize the
device using the appropriate functions, eg x11(), postscript(), etc.

> > par(mar=c(5,4,4,2)) #this will stay in effect until you either close the
> graphics window or change it with another call to par
> > plot(1:8,1:8)
> 
> In other words, par works on an open graphics device and applies to all
> subsequent plots to that device.  You can't put it in the plot command--a
> bit awkward at times, but often does save time and is very general.

Best,

Tamas

-- 
Tamás K. Papp
E-mail: tpapp at axelero.hu
Please try to send only (latin-2) plain text, not HTML or other garbage.




More information about the R-help mailing list