Skip to content
New issue

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

[colorlabels branch]: RowSideColors and ColSideColors gives black on invalid color (also alpha) #53

Open
stanstrup opened this issue Feb 1, 2016 · 1 comment

Comments

@stanstrup
Copy link

Using the colorlabels branch RowSideColors and ColSideColors gives black on invalid color. Seems putting an alpha level is also invalid.

d3heatmap(mtcars, scale = "column", colors = "Blues",RowSideColors=heat.colors(nrow(mtcars)),ColSideColors=rainbow(ncol(mtcars)))
d3heatmap(mtcars, scale = "column", colors = "Blues",RowSideColors=substr(heat.colors(nrow(mtcars)),1,7),ColSideColors=substr(rainbow(ncol(mtcars)),1,7))
@talgalili
Copy link
Owner

Hi @stanstrup

The heatmaply R package is a new implementation of interactive cluster heatmaps in R which relies on the plotly R package. This is based on a fork of my work in d3heatmap.

The package is availabale from CRAN:
https://cran.r-project.org/package=heatmaply

The feature you've requested is now available by using the following code:

library(heatmaply)
heatmaply(mtcars, scale = "column", RowSideColors=heat.colors(nrow(mtcars)),ColSideColors=rainbow(ncol(mtcars)))

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants