Re: [R] confusion matrix - better code?

2007-09-07 Thread Wolfgang Huber
Dear Monica, try this: cm = table(tr, pr) cm pr tr 1 2 3 1 2 1 0 2 2 1 0 3 0 0 3 4 0 1 0 rowSums(cm) colSums(cm) Best wishes Wolfgang Huber Monica Pisica ha scritto: Hi, I�ve written some code to obtain a confusion matrix when the true classification

Re: [R] Colours in R, was: deldir package - voronoi

2007-08-12 Thread Wolfgang Huber
Wolfgang -- Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber Turner ha scritto: On 12/08/2007, at 1:22 PM, zubin wrote: Hello! I am using the deldir package to visualize my data, pretty neat. However, i

Re: [R] sorting with criteria that are out of order

2007-03-19 Thread Wolfgang Huber
sort (b) [1] b b b b a a a a a a a a a c c c c c c c Levels: b a c Best wishes Wolfgang -- Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber Steen Krogh wrote: I try to sort this dataframe: [,1

Re: [R] count the # of appearances...

2007-03-01 Thread Wolfgang Huber
Dear Bunny, ? table might be what you wish. Best wishes Wolfgang Huber EBI bunny , lautloscrew.com wrote: Hi there, is there a possibility to count the number of appearances of an element in a vector ? i mean of any given element.. deliver all elements which are exactly xtimes

Re: [R] Advice on visual graph packages

2007-02-13 Thread Wolfgang Huber
wishes -- -- Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber Hey, all. I'm looking for packages that are good at two things 1) Drawing directed graphs (i.e nodes and edges), both with single and double headed

Re: [R] Near function?

2007-02-11 Thread Wolfgang Huber
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- -- Wolfgang Huber EBI/EMBL Cambridge UK http

Re: [R] Error in heatmap()

2007-01-20 Thread Wolfgang Huber
-- Wolfgang Huber EBI/EMBL Cambridge UK http://www.ebi.ac.uk/huber Hi, I run into following error when using heatmap() for data matrix xx. Any help is appreciated? xx contains many NAs. hv - heatmap(data.matrix(xx)) Error in hclustfun(distfun(if (symm) x

[R] Advanced course R programming and Bioconductor in Cambridge UK 30.3.+1.4.

2007-01-15 Thread Wolfgang Huber
for applications: 7th February 2007 Further information and details of how to apply can be found on our website: www.wellcome.ac.uk/advancedcourses and http://www.wellcome.ac.uk/doc_WTX035299.html Best wishes -- Wolfgang Huber EBI/EMBL

[R] Re: [Rd] (no subject)

2004-10-31 Thread Wolfgang Huber
- Wolfgang Huber European Bioinformatics Institute European Molecular Biology Laboratory Cambridge CB10 1SD England Phone: +44 1223 494642 Http: www.dkfz.de/abt0840/whuber - quote who=fang lai Dear all, I have several questions regarding