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

Change name of column and row in the tooltip #71

Open
Nicolabo opened this issue Aug 2, 2016 · 5 comments
Open

Change name of column and row in the tooltip #71

Nicolabo opened this issue Aug 2, 2016 · 5 comments

Comments

@Nicolabo
Copy link

Nicolabo commented Aug 2, 2016

Is it possible to customize name of column and row in the tooltip, to provide different labels that are placed on the y-axis and x-axis?

@boyiguo1
Copy link

labRow and labCol parameters will help?

@talgalili
Copy link
Owner

Hi @Nicolabo

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, label_names = c("x_name", "y_name", "some_value"))

image

@aaronxs
Copy link

aaronxs commented Jul 24, 2018

Hi Tal,

I tried running the sample using mtcars you gave but I get an error
Error in `[.data.table`(dt, , c(.I, NA), by = keyVars) : object '.I' not found

Any idea what caused this? Thanks!
Aaron

@talgalili
Copy link
Owner

talgalili commented Jul 24, 2018 via email

@aaronxs
Copy link

aaronxs commented Jul 24, 2018

Yes I used heatmaply and got that error message, I copied the code you have in your response above i.e.

library(heatmaply)
heatmaply(mtcars, label_names = c("x_name", "y_name", "some_value"))

Sorry I should have been more clear.

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

4 participants