Hello, I am drawing a heatmap with hundreds of genes. Everything work fine, except when I want to had the name of the genes as the row.names with>row.names (a)<-a$NameAnd there''s this things that duplicate are not allowed... How can I do to allow duplicates ??? I don''t have the choice I can''t just have numbers . Thanks for your help, I am new in R ... Fred [[alternative HTML version deleted]]
You cannot have duplicate row names. You have to do something to address that,
such as remove duplicates or aggregate your data.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
STADLER Frederic <frederic.stadler at unifr.ch> wrote:
>Hello,
>I am drawing a heatmap with hundreds of genes. Everything work fine,
>except when I want to had the name of the genes as the row.names with
>>row.names (a)<-a$Name
>And there's this things that duplicate are not allowed...
>
>How can I do to allow duplicates ??? I don't have the choice I
can't
>just have numbers .
>
>Thanks for your help, I am new in R ...
>
>Fred
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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.
On Fri, Sep 7, 2012 at 11:04 AM, STADLER Frederic <frederic.stadler at unifr.ch> wrote:> Hello, > I am drawing a heatmap with hundreds of genes. Everything work fine, except when I want to had the name of the genes as the row.names with >>row.names (a)<-a$Name > And there's this things that duplicate are not allowed... > > How can I do to allow duplicates ??? I don't have the choice I can't just have numbers .You might consider using make.unique(): row.names (a) <- make.unique(a$Name) HTH James
Thanks Arun, I can manage something with that, just need then to delete the first raw with photoshop ! Thanks Fred -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-duplicates-in-row-names-tp4642518p4642604.html Sent from the R help mailing list archive at Nabble.com.
Seemingly Similar Threads
- how to save a heatmap.2 in png /jpeg /tiff
- how to make row.names based on column1 with duplicated values
- heatmap-how to change the order of the rows (genes)
- Question: how to obtain the clusters of genes (basically the ones in the row dendrograms) from an object obtained by heatmap.2 function
- Cutting heatmap dendrogram