df <- read_csv("heatmap.csv")
df %>% gather(x,value, -X1) %>%
mutate(x = as.integer(x)) %>%
ggplot(aes(x=x, y=X1, color= value)) + geom_point()


On Dec 13, 2018, at 1:40 PM, Kavee L <xcub...@gmail.com> wrote:
Hi,How about this (it is not an optimal solution):
df <- read_csv("heatmap.csv")
df %>% gather(x,value, -X1) %>%
mutate(x = as.integer(x)) %>%
ggplot(aes(x=x, y=X1, color= value)) + geom_point()Best,Kavee
<Rplot03.png>
<Rplot01.png>
On Thursday, October 11, 2018 at 7:23:02 AM UTC-4, hfz.ali....@gmail.com wrote:Hi,
I am trying to plot heatmap with huge data matrix, can someone help me how I can construct heatmap similar to attached image.Thanks
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Rplot03.png><Rplot01.png>
df <- read_csv("heatmap.csv")
df %>% gather(x,value, -X1) %>%
mutate(x = as.integer(x)) %>%
It is more efficient, right?ggplot(aes(x=x, y=X1, fill= value)) + geom_raster()
Have you tried geom_raster()?david.
On Dec 13, 2018, at 1:40 PM, Kavee L <xcub...@gmail.com> wrote:
Hi,How about this (it is not an optimal solution):
df <- read_csv("heatmap.csv")
df %>% gather(x,value, -X1) %>%
mutate(x = as.integer(x)) %>%
ggplot(aes(x=x, y=X1, color= value)) + geom_point()Best,Kavee<Rplot03.png>
<Rplot01.png>
On Thursday, October 11, 2018 at 7:23:02 AM UTC-4, hfz.ali....@gmail.com wrote:Hi,
I am trying to plot heatmap with huge data matrix, can someone help me how I can construct heatmap similar to attached image.Thanks--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Rplot03.png><Rplot01.png>