Comments (6)
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"))
from d3heatmap.
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.
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.
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.
Looks like there are enough good ways around this to close this down. Thanks for the responsiveness and help!
from d3heatmap.
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)
- duplicate row labels re-aligns entire row labels
- Under rmarkdown d3heatmap only renders when returned to the top level
- Color row and column label text
- Change name of column and row in the tooltip HOT 5
- missing file link ‘shinyWidgetOutput’ HOT 3
- Print Cell Labels in Heatmap HOT 5
- Colors not being mapped correctly HOT 3
- d3heatmap does not render in flexdashboard when scatterD3 also used HOT 4
- heatmapcore.js uncaught TypeError
- additional margin space for longer labels HOT 3
- specify that zero values get neutral color in diverging data HOT 3
- self.getId(el) is not a function HOT 2
- x must be numeric problem in d3heatmap shiny
- Consolidated PR and CRAN update HOT 3
- Highlight multiple columns/rows
- Can't control the color representation with set data range
- Column name on the top of the heatmap? HOT 2
- Couldn't get a file descriptor referring to the console
- row names no longer appear after dplyr manipulation
- D3heatmap redifining print function for characters and numerics HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3heatmap.