Git Product home page Git Product logo

Comments (6)

talgalili avatar talgalili commented on June 8, 2024 1

Hi @iankloo

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

from d3heatmap.

mcjudd avatar mcjudd commented on June 8, 2024

I would appreciate such functionality as well. However, you can work around it for the time being by going to where your R libraries are installed, finding the folder "d3heatmap" and then navigating to "htmlwidgets/lib/d3heatmapcore" and editing heatmap.js -- the statements after the following line dictate the formatting of the tooltip:

var tip = d3.tip()
        .attr('class', 'd3heatmap-tip')
        .html(function(d, i) { // edit after here!
})

Note that, of course, this will permanently change the formatting and will need to be changed for each d3heatmap you wish to produce. Re-install the library to reset the code, or a keep a separate copy.

from d3heatmap.

mcjudd avatar mcjudd commented on June 8, 2024

Just an update to note that the argument cellnote for the d3heatmap function allows you to supply a matrix the same size as the data.frame being visualized with the text you'd like each cell to display on hover. More details via ?d3heatmap

from d3heatmap.

zhangz19 avatar zhangz19 commented on June 8, 2024

I have exactly the same concern. Is it possible to change "row", "col" and "value" into specific dimension names? Which would be very helpful. Not sure if this could be done in shiny when rendering d3heatmap.

from d3heatmap.

iankloo avatar iankloo commented on June 8, 2024

Looks like there are enough good ways around this to close this down. Thanks for the responsiveness and help!

from d3heatmap.

kaixis avatar kaixis commented on June 8, 2024

I have R version 3.2.5 and plotly version 4.7.0, why can't I import heatmaply package?

from d3heatmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.