Closed seraphim711 closed 7 years ago
Hi @seraphim711
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 here in d3heatmap.
The package is availabale from CRAN: https://cran.r-project.org/package=heatmaply With the following detailed vignette: https://cran.r-project.org/web/packages/heatmaply/vignettes/heatmaply.html
The feature you've requested is now available by using the following code:
library(heatmaply)
heatmaply(mtcars, xlab = "Features", ylab = "Cars",
main = "An example of title and xlab/ylab",
margins = c(60,100,40,20))
Thank you very much! This is an useful tool indeed 👍
For anyone else that stumbles on this, in January 2021 there are d3heatmap::d3heatmap
options called xaxis_height
and yaxis_width
(specified in pixels) that helped me address this issue.
How does one modify the margin space to accommodate longer row/column label names?
tags$div(style="width: 700px; margin-left: 10px; margin-right: 100px; margin-bottom: 100px", d3heatmapOutput(ns("heatmap"), width="100%", height="720px"))