Dear statalists, I always read your advice and now I need a specific help, if possible.
I have a dataset with some variables, but in this case I would like to focus on: the Group variable, that contains 3 group (HC, BF-, BF+) and the gene expression variable, that contains zscore data from my genes. I think Heatmap can show the difference in expression of my genes among groups. In order to do so
After creating a zscore of my genes data I proceeded with this code
reshape long z_, I(CODE) j(Gene) string
encode Gruppo, gen(Gruppo_num)
encode Gene, gen(Gene_num)
hmap z_ Gruppo_num Gene_num, color(reds)
but I have no results because stata can't generate the graph.
I wonder if there is another way in order to generate a hat map.
I tried also
twoway contour long z_ Gruppo_num Gene_num, heatmap
but the graph is so bad.
Can you help me in order to try to generate a good heat graph and see if this is for real the best way to show my data if gene expression in my 3 groups?
Thanks a lot
I have a dataset with some variables, but in this case I would like to focus on: the Group variable, that contains 3 group (HC, BF-, BF+) and the gene expression variable, that contains zscore data from my genes. I think Heatmap can show the difference in expression of my genes among groups. In order to do so
After creating a zscore of my genes data I proceeded with this code
reshape long z_, I(CODE) j(Gene) string
encode Gruppo, gen(Gruppo_num)
encode Gene, gen(Gene_num)
hmap z_ Gruppo_num Gene_num, color(reds)
but I have no results because stata can't generate the graph.
I wonder if there is another way in order to generate a hat map.
I tried also
twoway contour long z_ Gruppo_num Gene_num, heatmap
but the graph is so bad.
Can you help me in order to try to generate a good heat graph and see if this is for real the best way to show my data if gene expression in my 3 groups?
Thanks a lot
Comment