In this post, we will see how can we add text annotation to heatmaps made with ggplot2. In ggplot2, we can make simple heatmaps using ggplot2’s geom_raster() and geom_tile(). In this post, we will use geom_text() to add text annotation, i.e. numerical values in the heatmap. We will also see multiple examples of adding color… Continue reading How to add text annotation to heatmap with ggplot2
Category: Heatmaps with ggplot2
Heatmap from Matrix using ggplot2 in R
Heatmaps are data visualization tool that displays a matrix of data as a matrix of colors. For example, matrix elements with low values will have lighter colors and the elelments with high values will have a darker color. In earlier post we saw examples of making heatmap using ggplot2 in R. However, we assumed that… Continue reading Heatmap from Matrix using ggplot2 in R
How To Make Simple Heatmaps with ggplot2 in R?
Heatmaps visualizes multi-dimensional data as a matrix filled with colors based on their numerical value. For example the portion of matrix with low values will have one color and the portion with high values will have another color. This can help us identify the pattern in the data easily. In this post we will examples… Continue reading How To Make Simple Heatmaps with ggplot2 in R?