Asymmetric colors for heatmap
2
0
Entering edit mode
@christianstratowavieboehringer-ingelheimcom-545
Last seen 10.2 years ago
Dear all, Currently, my colors are as follows: mycol <- c("blue1","blue2","blue3","blue4","black","yellow4","yellow3","yellow2 ","yel low1") heatmap(snp, Rowv=NA, Colv=NA, col=mycol) However, I would like to have the following colors: bright blue -> dark blue: for intensity range from 0 to 2 in steps of 0.5 (i.e. 4 grades of blue) black: for intensity 2 dark yellow -> bright yellow: for intensity range from 2 to 8 in steps of 0.5 (i.e. 8 grades of yellow) You may realize that I want to display copy number data from SNP-chips as heatmap. Since copynumber = 2, is the default value, I want to display it in black, LOH in increasing blue, and amplifications in increasing yellow. Even though there may be higher amplification rates, a value of CN=8 should already display the brightest yellow. In Spotfire it is easy to achieve this, especially that CN=2 is always displayed as black, however, I do not know how to do it in R. Can you tell me how I have to create the colors to achieve this? (P.S.: Of course, I could do: snp[snp>8] <- 8, but this will not solve my problem with asymmetric colors) Thank you in advance Christian Stratowa
copynumber copynumber • 1.7k views
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20050729/ 9731c7e7/attachment.pl
ADD COMMENT
0
Entering edit mode
@christianstratowavieboehringer-ingelheimcom-545
Last seen 10.2 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20050729/ 44fc04d9/attachment.pl

Login before adding your answer.

Traffic: 636 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6