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

Set alpha values from dataframe #174

Open
NathanGuy14 opened this issue Apr 21, 2018 · 3 comments
Open

Set alpha values from dataframe #174

NathanGuy14 opened this issue Apr 21, 2018 · 3 comments

Comments

@NathanGuy14
Copy link

In ggplot2, the alpha values of each cell in a heatmap can be set individually, using the aes() function. Can the same be done in heatmaply?

@talgalili
Copy link
Owner

talgalili commented Apr 21, 2018 via email

@NathanGuy14
Copy link
Author

NathanGuy14 commented Apr 21, 2018 via email

@alanocallaghan
Copy link
Collaborator

alanocallaghan commented Apr 24, 2018

I don't know if this is properly supported in plotly as of right now:

library(ggplot2)
library(plotly)

g <- ggplot(mtcars, aes(x=factor(cyl), y = factor(carb), fill = mpg, alpha = vs)) + geom_tile()
print(g)

tmp

print(ggplotly(g))

newplot

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

3 participants