talgalili / d3heatmap

A D3.js-based heatmap htmlwidget for R
Other
237 stars 95 forks source link

horizontal axis tick rotation options #46

Open vixr opened 8 years ago

vixr commented 8 years ago

Could an option be added to rotate the horizontal axis to be at angles other than 45 degrees?

talgalili commented 7 years ago

Hi @vixr

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, column_text_angle = 70)

image

(you should also play with the margins argument so to get to see all the labels)

library(heatmaply)
heatmaply(mtcars, column_text_angle = 70, margins = c(50,NA,NA,NA))

image