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.Galili@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_five@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]]