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

Rolf Turner rolf at math.unb.ca
Fri May 21 16:12:36 CEST 2004


Tamas Papp wrote:

> 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.

	Just issue the par() command, and if no device is open, an
	x11 window will be opened automatically.  Sean Davis's
	assertion that ``you must have an open graphics window before
	par has an effect'' simply isn't true.  At least it's not
	true under R 1.8.1 on Solaris nor under R 1.9.0 on Linux.


				cheers,

					Rolf Turner
					rolf at math.unb.ca




More information about the R-help mailing list