[R] ClustPlots part3
Gavin Simpson
gavin.simpson at ucl.ac.uk
Thu Feb 20 18:03:03 CET 2003
Hi Mark
Does this help?
plot(clara.obj, which.plots = 1)
This was buried a bit in the documentation for cluster. plot.partition() is
the function used to do the plotting. See its help page
You need to tell it to do plot 1 or 2 or NULL. 1 gets you a clusplot, 2
gets a silhouette plot, NULL gets both. In the above command, the
which.plots gets passed though to plot.partition and only produces the one
diagram.
All the best,
Gavin
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [T] +44 (0)20 7679 5522
ENSIS Research Fellow [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC [E] gavin.simpson at ucl.ac.uk
UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/
London. WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
-----Original Message-----
From: r-help-admin at stat.math.ethz.ch [mailto:r-help-admin at stat.math.ethz.ch]
On Behalf Of Mark Marques
Sent: 20 February 2003 16:36
To: R-help Mailing list.
Subject: [R] ClustPlots part3
I am using the library(cluster), and (mva)
Clustering function clara()
sometihng like this:
cdata <- clara(vdata,6)
plot(cdata)
savePlot(filename="c:\\clara1",type=c("png"),2)
But for my surprise the after the plot I get :
"Hit <Return> to see next plot:"
if i do something like :
plot(cdata,3)
I get:
Make a plot selection (or 0 to exit):
1:plot All
2:plot Clusplot
3:plot Silhouette Plot
Selection:
As far I know calling plot is using clusPlot() by reading the
"clara" object.
How can I avoid that interaction ?
Thanks in advance
______________________________________________
R-help at stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list