[R] ggplot facet: change layout of panels

2008-08-23 Thread Tom Boonen
Hi, is there anyway to adjust how ggplot(facet=) displays the layout of panels? I have a dataset with many 25 groups and gplot(y,x,facet= .~group) displays all 25 y~x plots next to each other so overall the plot is too wide. if i do the same plot in lattice xyploy(y~x|group) the y~x plots are

[R] suppress some boxes drawn by legend(,fill)

2008-01-22 Thread Tom Boonen
Is there any way suppress box color and frame of a box drawn by legend(,fill)? I am able to suppress the color, but not the frame (see the example below). Many thanks! (This follows up from a question asked on the list in 2006 by Florian Koller) Tom x1 - rnorm(100) x2 - rnorm(100, 2) hist(x1,

[R] error rate for cluster analysis

2007-09-24 Thread Tom Boonen
Hi all, I am looking for an R function or a metric that I could self code that compare the results of a clustering exercise with a given solution key. An example. Let's say four elements are clustered, the number of clustered is unknown a priori. For my guess and the solution, I have two