Hi Nana,

The question is not fully clear to me.

Are you looking to plot the (let's call it) "family tree" of the genes ?

(if so, then using
plot(hclust(gene.dist))
Might be a direction for you)

Tal


----------------Contact
Details:-------------------------------------------------------
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Fri, Jun 25, 2010 at 8:56 AM, nana <adriana_f...@yahoo.co.uk> wrote:

> a <- c( 2 , 5, 15, 16)
> b <- c(1 ,1, 8 , 8)
> c <- c (10, 10 11 ,11)
> m<-matrix(c(a,b,c),byrow=T,nrow=3)
> rownames(m)<-c("gene a", 'gene b','gene c')
> m
> gene.dist<-dist(m,method='euclidian')
> gene.dist
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/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.

Reply via email to