We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way of setting the color scale in DoHeatMap so that 0 is always a specific color e.g white?
This is what happens currently: - you can see that 0 is not in the centre so this can be a little misleading.
I can use display.max and display.min to 'even' out the scale like this:
but this also means I have clipped off some of the data and it becomes a little less informative.
My code is as follows: DoHeatmap(object = cluster.averages,features = c("GENE1", 'GENE2', 'GENE3'), size = 3, disp.max = 1.4, disp.min = -1.5) + scale_fill_gradientn(colors = rev(RColorBrewer::brewer.pal(n = 10, name = "RdBu")))
Any help with this would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Try to use scale_fill_gradient2 which can set middle point and color.
scale_fill_gradient2
DoHeatmap(object = cluster.averages,features = c("GENE1", 'GENE2', 'GENE3'), size = 3, disp.max = 1.4, disp.min = -1.5)+ scale_fill_gradient2( low = rev(c('#d1e5f0','#67a9cf','#2166ac')), mid = "white", high = rev(c('#b2182b','#ef8a62','#fddbc7')), midpoint = 0, guide = "colourbar", aesthetics = "fill")
Sorry, something went wrong.
Works great thanks!
No branches or pull requests
Is there any way of setting the color scale in DoHeatMap so that 0 is always a specific color e.g white?
This is what happens currently: - you can see that 0 is not in the centre so this can be a little misleading.
![image](https://user-images.githubusercontent.com/50600588/57658963-dd9ed500-759d-11e9-995e-749cb854c4d2.png)
I can use display.max and display.min to 'even' out the scale like this:
![image](https://user-images.githubusercontent.com/50600588/57659041-25256100-759e-11e9-82b2-d903d47383ff.png)
but this also means I have clipped off some of the data and it becomes a little less informative.
My code is as follows:
DoHeatmap(object = cluster.averages,features = c("GENE1", 'GENE2', 'GENE3'), size = 3, disp.max = 1.4, disp.min = -1.5) + scale_fill_gradientn(colors = rev(RColorBrewer::brewer.pal(n = 10, name = "RdBu")))
Any help with this would be greatly appreciated!
The text was updated successfully, but these errors were encountered: