[R] Heatmap Help

Sarah Goslee sarah.goslee at gmail.com
Wed Dec 11 21:39:24 CET 2013


You have some randomly doubled quotation marks and parentheses.

A text editor with syntax highlighting is wonderful for catching that
sort of problem.

Beyond that, see:

?heatmap

A "very urgent" request suggests homework to me, which this list doesn't do.

Though sometimes someone will offer a hint or two...

Sarah

On Wed, Dec 11, 2013 at 2:31 PM, Gaurav Pandey
<gaurav.pandey789 at gmail.com> wrote:
> Hello,
> I want a help, i have to make heat map.And i am using the following command
> In R for generating a matrix, but its returning an error,and i am not able
> to figure it out.
> Can you please tell me what is wrong?
> And please also suggest me how to generate a heat map.
> Its very urgent.
>
> Thanks a lot.
>
> mat <-
> matrix(c(100,49.3,45.71,54.29,97.22,68.57,49.3,100,22.54,26.76,50.7,33.8,45.71,22.54,100,84.21,44.44,66.67,54.29,26.76,84.21,100,52.78,79.17,97.22,50.7,44.44,52.78,100,66.67,68.57,33.8,66.67,79.17,66.67,100),
> nrow = 6, ncol = 6, byrow = TRUE,dimnames =
> list(c(""A_1HJO","B_2L1W","C_1MHS","D_1HQY","E_1XU4","F_1JNB""),c(("A_1HJO","B_2L1W","C_1MHS","D_1HQY","E_1XU4","F_1JNB"))))
>
> Error: unexpected symbol in
> "49.3,45.71,54.29,97.22,68.57,49.3,100,22.54,26.76,50.7,33.8,45.71,22.54,100,84.21,44.44,66.67,54.29,26.76,84.21,100,52.78,79.17,97.22,50.7,44.44,52.78,100,66.67,68.57,33.8,66.67,79.17,66.67,10"
>
> Gaurav Pandey
> PhD Scholar
> Department of Biotechnology,
> Indian Institute of Technology Guwahati.
>


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list