Displaying 20 results from an estimated 500 matches similar to: "silhouette plot colors from trimkmeans solution"
2011 Aug 25
1
question on silhouette colours
I'm fairly new to the silhouette functionality in the cluster package, so apologize if I'm asking something naive.
If I run the 'agnes(ruspini)' example from the silhouette section of the cluster package vignette, and assign colours to clusters, two clusters have what appear to be incorrect colours in the silhouette plot.
library(cluster)
data(ruspini)
ar<- agnes(ruspini)
2008 Jun 13
1
Output of silhouette (cluster package)
Dear R users,
I am mailing you about the graphical output of silhouette (cluster
package)
From the example of silhouette in help(silhouette):
> ar <- agnes(ruspini)
> si3 <- silhouette(cutree(ar, k = 5), # k = 4 gave the same as pam()
above
+ daisy(ruspini))
> plot(si3, nmax = 80, cex.names = 0.5)
from which one may conclude that group 1 is composed by
2009 May 16
5
bagged importance estimates in earth problem
I was trying to produced bagged importance estimates of attributes in earth using the caret package with the following commands:
fit2 <- bagEarth(loyalty ~ ., data=model1, B = 10)
bagImpGCV <- varImp(fit2,value="gcv")
My bootstrap estimates are produced however the second command "varImp" produces the following error:
Error in UseMethod("varImp") : no
2007 Feb 24
1
Bold Substring in mtext (newbie question)
Hi everyone,
I suspect this is an easy task however I've not been able to accomplish it. I'd like to create an mtext title which has certain words bold, the rest not bold. So far I've been able to create one which is all bold, one which is all not bold and one which has bold and not bold superimposed on one another. Any suggestion would be appreciated.
Many thanks,
Joe Retzer
# Not
2005 Jun 27
1
A. Mani : colours in Silhouette
Hello,
In cluster analysis with cluster, how does one colour the silhouette
plots ? For example in using pam. There seems to be some problem there.
Everything else can be coloured.
Thanks,
A. Mani
Member, Cal. Math. Soc
2004 May 25
4
Object "silhouette.default" not found. But I knew that it is there.
Hi!
>library(cluster)
In this lib a function called silhoutte.default is defined
than on the R prompt it type
>silhouette.default
Error: Object "silhouette.default" not found
R1.9.0
The same error are at R1.8.1
And I knew that a function silhoutte.default are present.
But the same piece of code works in R1.6.2
???
Eryk
Dipl. bio-chem. Eryk Witold Wolski @
2003 Feb 06
2
function 'silhouette' in package 'cluster'
Dear all,
I am trying (without much success) to use the fuction 'silhouette'.
Would anyone encountered that before (or would know where I am wrong ?)
Please find below the R ouput. Thanks in advance,
L.
> s <- silhouette(ct, as.dist(metric))
Error in "[<-"(*tmp*, iC, "sil_width", value = s.i) :
number of items to replace is not a multiple of replacement
2010 Dec 31
1
Silhouette function problem
Hi,
I am using code below to get a plot that will show me on the X axis the
number of clusters and on the Y axis the cluster average widths. However I
am getting this error:
Error in summary(silhouette(cutree(d, x), dist(iris[, -5])))$si.summary :
$ operator is invalid for atomic vectors
the code I am using is:
avgs<-sapply(1:20,function(x)
summary(silhouette(cutree(d,x),
2008 Mar 03
1
silhouette plot for kmeans result
Dear All,
Is there any existing code for plotting silhouette for kmeans clustering
results?
Many thanks!
Linda
[[alternative HTML version deleted]]
2007 Oct 10
1
silhouette: clustering labels have to be consecutive intergers starting from 1?
Hi list,
When I was using 'silhouette' from the 'cluster' package to calculate
clustering performances, R crashed. I traced the problem to the fact that
my clustering labels only have 2's and 3's. when I replaced them with 1's
and 2's, the problem was solved. Is the function purposely written in this
way so when I have clustering labels, "2" and
2009 Jun 20
1
png() resolution problem {was "Silhouette ..."}
Hallo Sebastian,
>>>>> "SP" == Sebastian P?lsterl <sebp at k-d-w.org>
>>>>> on Sun, 14 Jun 2009 14:04:52 +0200 writes:
SP> Hello Martin,
SP> I plotting the silhouette of a clustering and storing it as png. When I
SP> try to store the image as png the bars are missing. The bars are plotted
SP> when I use x11 or
2008 Jul 25
1
Thin frame line around R pdf output in LaTeX
I'm using R 2.7 on an Intel MAC.
When I produce a pdf graph, I save the output window from the menu to a pdf file. This gives a very nice quality graph.
However when I include the graph in a LaTeX document (actually beamer presentation) using \includegraphics I get a graphic with a very light framebox around the outside. Note, I'm not using a fbox command in LaTeX.
Not sure if this is
2000 Oct 31
1
Silhouette plot labels in package cluster
Hello everybody:
I have just started using R, specifically the clustering packages. Despite
the vastness of the functionality of the system, I have found it very
flexible and intuitive. It has been great fun to experiment with it.
Nevertheless, I am under tight time constraints to complete a cluster
analysis of some data and need to come up with a "quick" solution for the
following
2006 Apr 12
1
Newbie question: setting rgl.surface plot attributes
I don't seem to be able to label the x, y or z axis when creating a 3d chart
using rgl.surface. I'd like to have them parallel to the axis line and move
with the graph when rotated. Can this be done?
Many thanks,
J. Retzer
[[alternative HTML version deleted]]
2007 Feb 24
1
mtext bold font problem
Hi everyone,
I suspect this is an easy task however I've not been able to accomplish it. I'd like to create an mtext title which has certain words bold, the rest not bold. So far I've been able to create one which is all bold, one which is all not bold and one which has bold and not bold superimposed on one another. Any suggestion would be appreciated.
Many thanks,
Joe Retzer
# Not
2010 Oct 17
0
make error for R 2.13.0
Hi dear all
It's the first time for me to install a developmental version of R, I came
across following errors, my system is
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
I downloaded the dev version of R in cran R source, and downloaded the
recommended packages by using wget as described in R manual, and run
2009 Mar 13
1
Hierarchical Bayesian Modeling in R
Hi Friends,
I'm trying to model the consumer decisions (Click-Through Rate and
Conversion) in Search Engine Advertising using a hierarchical Bayesian
binary logit. The input data is the weekly CTRs and Avg. Position for each
search keyword.
CTR is modeled as (for each keyword i and week j):
Pij = exp(C + Bi x Positionij + A1 x Lengthi + A2 x Brandi + A3 x
ProductSpecifici) / [1 + exp(C +
2007 Oct 16
0
doubts about Silhouette
Sorry for the long message. I'm doing my best to try to explain myself.
I have fitted a spline to my data, I have fitted a spline, filled in
the missing data by replicating the spline coefficients associated to
the last node. I obtained a number of dendograms by different
combination of distance and link-method by calling DIST and AGNES.
The agglomerative coefficient is very high (~ 0.99) for
2006 Aug 10
0
Colours in silhouette plots (cluster package)
I tried using colours in silhouette plots by specifying a vector of
colours instead of the default "gray" for the col parameter.
No bars are drawn, though the rest of the plot works as it did with
the grey bars. On investigating cluster:::plot.silhouette, I came
across this part:
if (do.col.sort && (lc <- length(col)) > 1) {
if (lc == k)
col <-
2009 Jul 10
0
Colour in banner/silhouette plot
Dear List
How do you change the colour settings for the banner/silhouette plot? I am
trying to produce
a black and white plot of publication quality.
Is there a way to set black and white plots as the default for R graphics?
Any help greatly appreciated.
Graham Leask
Economics & Strategy Group
Aston University
[[alternative HTML version deleted]]