All Questions
31
questions
0
votes
1
answer
625
views
Pheatmap in R: Setting Fixed Limits of Heatmap Legend
I am working in R with the pheatmap library. I am creating heatmaps for different timepoints for the same population, so I want the legend scale to be fixed (from -2 to 2) for each heatmap so they can ...
1
vote
2
answers
309
views
Customize legend with discrete labels for heatmap with continuous but binned data
I have created a heatmap in ggplot with continuous temperature data and scale_fill_viridis_c:
To make it easier to read I am testing a binned version with scale_fill_viridis_b and n.breaks:
My ...
1
vote
0
answers
211
views
Legend desepear when i use "scale_fill_gradientn" in ggplot2
I have a problem in my code somewhere but i can't figure out where it is.
I try to make a heatmap using p-adj values that i got from an ANOVA + Tukey test.
The thing is that the p-adj values range ...
0
votes
0
answers
165
views
Changing colors shown in legend superheat R heat map
I have a heat map that has lots of very low values and a few very high ones. The colors we've used seem fine to show these, but the legend is hard to see/read because you can't see the colors at the ...
0
votes
1
answer
143
views
heatplot in R with legend and significance
I am trying to plot a heatmap in R on a dataframe havin 4 rows and 25 columns.
dput(phenotype_MEs_spearman)
structure(c(0.775716994264046, 0.0910480716154271, -0.0514747882016944,
-0.169827441380469, ...
3
votes
1
answer
15k
views
ComplexHeatmap: How to place heatmap legend and annotation legend differently?
I have produced this plot with library(ComplexHeatmap)
I want the Z-score at the bottom-position while the categorial variables shown on the right side. This post came close, but I cannot get it to ...
1
vote
2
answers
769
views
Weird characters appearing in the plot legend when using DoHeatmap
I was using Seurat to analyse single cell RNA-seq data and I managed to draw a heatmap plot with DoHeatmap() after clustering and marker selection, but got a bunch of random characters appearing in ...
0
votes
1
answer
2k
views
How do I add a legend to my heatmap in R?
I have a large dataset of the expression of genes.
The rows are the genes.
The columns are SPECIFIC tissues- so it is the gene expression in that tissue
I'm using the following code to make a heatmap:
...
0
votes
0
answers
242
views
ggplot heatmap legend scale for multiple heatmaps in a shiny app
I have a shiny app, where I can generate 3 heatmaps depending on the selectinput field. The legend of heatmap 1 shows all 4 discrete variables "1" = "very good", "2" = &...
0
votes
0
answers
160
views
Visualise legend colors in data with outliers in Complexheatmap in R?
This is the legend image of a heatmap that i had plot. I have data with a few outliers and thus the range lies from 1-5597. However, the majority of numbers lie in the range of 1-500 but because of ...
8
votes
3
answers
6k
views
R ggplot heatmap with multiple rows having separate legends on the same graph
I'm trying to make one heatmap using ggplot2 that contains 3 types of variables where each need their own independent legend/scale.
I am able to plot them all in one heatmap (pictured below), but I am ...
2
votes
0
answers
1k
views
Adding legend to heatmap
I'm trying to build a heatmap using the heatmap() funtion. I was able to obtain the graph with its dendogram and to set the color using the RColorBrewer Palette. What I would like to do now is add a ...
6
votes
2
answers
1k
views
Possible to force non-occurring elements to show in ggplot legend?
I'm plotting a sort of chloropleth of up to three selectable species abundances across a research area. This toy code behaves as expected and does almost what I want:
library(dplyr)
library(ggplot2)
...
6
votes
1
answer
6k
views
ggplot extend legend colorbar [duplicate]
I'm trying to make a heatmap on ggplot. I have a data frame similar to the one below
wday hour quant
Mon 0 1.2346944
Tue 0 0.8418860
Wed 0 0.8904375
Thu 0 0.8906767
Fri 0 1.0761553
...
3
votes
2
answers
1k
views
Multiple fill legends for each variable in heat map
I have an input file file1.txt:
V1 V2 Score
rs4939134 SIFT 1
rs4939134 Polyphen2 0
rs4939134 MutationAssessor -1.75
rs151252290 SIFT 0.101
rs151252290 Polyphen2 0.128
...