Thanks for the great walk-through! Many other videos go through so many unnecessary steps, but you kept it concise and still hit so many comparative points!
@@StatisticsGlobe Can I ask one I want to fix the legend (eg- -3,-1,0,1,3) (I mean the value). So, How should I do. When I run many data but the value is not same.
Thanks mate! You would have to aggregate your data first, and then you would have to format it as a matrix. If you have only two groups, it probably doesn't make much sense, but here is an example based on your data: data
@@StatisticsGlobe Thanks a lot for your time and support. The samples that I am dealing with are treated and untreated, and can be divided into two groups A and B. This sum function cannot be used. However, thanks to your explanation, I categorized them as A1, A2, A3, B1, etc. then ran the Heatmap(data) code and got what I wanted.
If we copy your script and apply on our original data not on the save data by R then it's gives numeric error. Please tell me how to resolve numeric error issues. Thanks in anticipation.💐
I did all the steps and finally the viewer doesn't shows the plot_ly heat map... What should I do... And also I wanted to change the direction and overlapping x1 axis value for that what I have to do
Thank you for all your videos. They're all very useful. Can you explain, please, how to make a spectral analysis by R in one of your videos? Periodogram or something else. Or maybe you've already done it...
Thanks a lot for the very kind words Sergey! Also, thank you for the suggestion! I'm not an expert on this topic, but I'll put it on my to-do list for future tutorials. Regards, Joachim
Hi, How can I use the row names from my file on the heatmap, currently it just says Row 1 all the way to Row 6 rather than the actual title? heatmap(as.matrix(my data[, -1])) This is the script I'm using, its the only way I could get it to work as its not a matrix apparently. Thank you
Hey, please check out the labRow and labCol arguments as described here: www.rdocumentation.org/packages/stats/versions/3.6.2/topics/heatmap Regards, Joachim
How to creat heat map analysis when i have more then 2 data (i mean to say i have 2 experiment data and i want to creat both data show in one heat map Graph )
Hey Sam, I'm sorry for the late response, I just came back from holidays and did not have the chance to read your message earlier. Do you still have problems with this?
Hi Shandry, thank you for the nice comment! Are you looking for this? statisticsglobe.com/change-colors-of-ranges-in-ggplot2-heatmap-r Regards, Joachim
Hi Li, Thanks for the comment! What would be reflected by the 3rd colors? Right now you are having a range of colors between two colors, so what would be the meaning of a completely different color? Regards, Joachim
Great video!!! But when i do create some heatmap using ggplot2, how can i set the values? (in your video for example, the heatmap values were setted as -20 to +20). Thanks!!
Hey Hugo, that's a great question! The legend (i.e. "value") is created automatically by the ggplot2 package and depends on the input values of your data frame (i.e. data_melt$value). If you change these values, the legend is changed as well. Regards, Joachim
Hi Sabah, Thanks for the question. To make sure that I got you right: You want to assign a different color combination to each column of the heatmap? Regards, Joachim
@@StatisticsGlobe yes for example In first column I need highest values and use red color and in second I need lowest values but color should be same for both column
@@hr_foods Ah I think I got it. You may modify your data before creating the heatmap, i.e. convert those negative values to positives. Does this make sense? Regards, Joachim
Have made heatmap successfully except I have 68 labels in data instead I am getting only 34 row labels in the heatmap. Heatmap is perfect but this number of row labels are half
Thanks for the great walk-through! Many other videos go through so many unnecessary steps, but you kept it concise and still hit so many comparative points!
That's some awesome feedback, thanks Shawn!
Thank you for details explaining. I have known many kind of heatmap code.
Thank you for the kind feedback, I'm happy to help!
@@StatisticsGlobe Can I ask one I want to fix the legend (eg- -3,-1,0,1,3) (I mean the value). So, How should I do. When I run many data but the value is not same.
Are you looking for this? statisticsglobe.com/change-labels-continuous-ggplot2-legend-r
@@StatisticsGlobe Thanks a lot for your help.
really thank you for providing us remakable video
Hi Meseret, thanks for the positive response! Great to hear that the video was helpful!
Thanks, dear, you are a gem.
Wow, thank you mate! :)
Excellent explanation and content
This is great to hear, thanks a lot!
This was very useful. thank you so much :)
That's great to hear, thanks for the comment, Elisabeth!
Great explanation. I have two groups (A and B). How can I get a heat map? For example, data
Thanks mate! You would have to aggregate your data first, and then you would have to format it as a matrix. If you have only two groups, it probably doesn't make much sense, but here is an example based on your data:
data
@@StatisticsGlobe Thanks a lot for your time and support. The samples that I am dealing with are treated and untreated, and can be divided into two groups A and B. This sum function cannot be used. However, thanks to your explanation, I categorized them as A1, A2, A3, B1, etc. then ran the Heatmap(data) code and got what I wanted.
Great to hear that you found a solution! :)
If we copy your script and apply on our original data not on the save data by R then it's gives numeric error. Please tell me how to resolve numeric error issues. Thanks in anticipation.💐
Hello Atif,
What is the exact error that you get?
Regards,
Cansu
I did all the steps and finally the viewer doesn't shows the plot_ly heat map... What should I do... And also I wanted to change the direction and overlapping x1 axis value for that what I have to do
Hey, have you used exactly the same code as I did in the video?
@@StatisticsGlobe yes exactly the same
I just executed the code again, and everything worked fine. Did you get any error messages?
Thank you for all your videos. They're all very useful. Can you explain, please, how to make a spectral analysis by R in one of your videos? Periodogram or something else. Or maybe you've already done it...
Thanks a lot for the very kind words Sergey! Also, thank you for the suggestion! I'm not an expert on this topic, but I'll put it on my to-do list for future tutorials. Regards, Joachim
@@StatisticsGlobe Sounds great! Thanks in advance!
You are very welcome! :)
Hi,
How can I use the row names from my file on the heatmap, currently it just says Row 1 all the way to Row 6 rather than the actual title?
heatmap(as.matrix(my data[, -1]))
This is the script I'm using, its the only way I could get it to work as its not a matrix apparently. Thank you
Hey, please check out the labRow and labCol arguments as described here: www.rdocumentation.org/packages/stats/versions/3.6.2/topics/heatmap Regards, Joachim
How to creat heat map analysis when i have more then 2 data (i mean to say i have 2 experiment data and i want to creat both data show in one heat map Graph )
Hello Muhammed,
Could you give some more details by providing an example?
Regards,
Cansu
What if you wanted more colors than 100 in example 3, how would you do that?
Hey Sam, I'm sorry for the late response, I just came back from holidays and did not have the chance to read your message earlier. Do you still have problems with this?
Thank you for a detailed tutorial!!
I have a question, what are the codes for inserting colour key on the heatmap?
Hi Shandry, thank you for the nice comment! Are you looking for this? statisticsglobe.com/change-colors-of-ranges-in-ggplot2-heatmap-r Regards, Joachim
@@StatisticsGlobe Yes, thanks so much for the link, and the website is very useful.
Thank you Shandry, glad it helped!
Great tutorial! Thanks!
Thanks Andre! :)
thank you for the tutorial! but how can I create a heatmap with more than 2 colors using the ggplot2 package?
Hi Li, Thanks for the comment! What would be reflected by the 3rd colors? Right now you are having a range of colors between two colors, so what would be the meaning of a completely different color? Regards, Joachim
Great video!!! But when i do create some heatmap using ggplot2, how can i set the values? (in your video for example, the heatmap values were setted as -20 to +20). Thanks!!
Hey Hugo, that's a great question! The legend (i.e. "value") is created automatically by the ggplot2 package and depends on the input values of your data frame (i.e. data_melt$value). If you change these values, the legend is changed as well. Regards, Joachim
I want to change color for each columns how I do, because for some column I need positive value or some negative
Hi Sabah, Thanks for the question. To make sure that I got you right: You want to assign a different color combination to each column of the heatmap? Regards, Joachim
@@StatisticsGlobe yes for example In first column I need highest values and use red color and in second I need lowest values but color should be same for both column
@@hr_foods Ah I think I got it. You may modify your data before creating the heatmap, i.e. convert those negative values to positives. Does this make sense? Regards, Joachim
@@StatisticsGlobe yes
@@StatisticsGlobe yes but how in R
Have made heatmap successfully except I have 68 labels in data instead I am getting only 34 row labels in the heatmap. Heatmap is perfect but this number of row labels are half
Hello, Ankitkachchchi. We are sorry for the late response to your comment. Do you still need help with your query?
@@Ifeanyi.StatisticsGlobe No thnx
@@ankitkachchhi7293 Great, Ankitkachchhi. Wish you the best going forward!
@@Ifeanyi.StatisticsGlobe Have made heatmap successfully except I have 111 labels in data instead I am getting only 37 row labels in the heatmap.