-
Notifications
You must be signed in to change notification settings - Fork 85
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
Unable to rotate column labels #20
Comments
I've got the same issue. It seems that pheatmap is the only plotting package that rotates the lables by 270° than by 90° ;) If dublicated draw_colnames as draw_colnames_90 with my preferred values. But that's obviously an ugly hack. It would be great, if the rot value could be a separate parameter to call in pheatmap() itself. But I can't provide a comprehensive code proposition... Here the hack: draw_colnames_90 = function(coln, gaps, ...){
} |
It looks like pull #23 provided an implementation of this but the branch hasn't been merged. @raivokolde Are you thinking of incorporating these changes? pheatmap is really nice, thanks. |
Hi, labels_col <- mgsub::mgsub(colnames(mat), pattern = c("Sample_", "MEP_"), replacement = c("Sample\n", "MEP\n")) |
Has an implementation been introduced to the package? |
Hi,
Here is my code:
pheatmap(mat, display_numbers = T, scale = 'row',clustering_distance_rows = 'correlation', main = "Differentially Expressed Genes\n", cellwidth = 70 , cellheight = 10)
This is the result:

But my column names are too long and I'd like to rotate them by say 45 degrees. Is that possible?
Thanks!
The text was updated successfully, but these errors were encountered: