Questions tagged [heatmaply]
heatmaply is an actively maintained open-source heatmap package for R, based upon the plotly R and JavaScript libraries.
49
questions
1
vote
1
answer
72
views
how to increase labels distance from main plot in heatmaply r
I have a simple issue in interactive heatmap in R. I couldn't figure out how to increase margins (distance between x and y labels with main plot) in heatmaply?
I want to add a little bit of space in ...
0
votes
0
answers
24
views
How to get 4 different cluster correlation heat maps to have the same order axis so they can be compared against one another
I have run this code separately for each set of data, I have 44 regions and need to correlate them against one another but for 4 different treatment groups, each of which have 8-10 individual values.
`...
4
votes
4
answers
239
views
Heatmap in R with raw values
I have this dataframe:
df <- data.frame(PatientID = c("3454","345","5","348","567","79"),
clas1 = c(1, 0, 5, NA, NA, 4),
...
2
votes
1
answer
181
views
Is there any option to export the heatmap from heatmaply in .svg format
I am wonder if there is any option to export the heatmap in svg or pdf format.
2
votes
1
answer
396
views
How can I plot a heatmap with the heatmaply package in Shiny?
I am trying to use the heatmaply package in order to plot a heatmap and it works well.
On the other hand, when I try to do the same plot in Shiny it doesn't appear in the interface (when I click "...
0
votes
1
answer
151
views
How to add custom text per column of a heatmap in R?
I have a dataset where I am plotting a heatmap to compare 7 groups. I also have per group 2 columns of data that describe the group. I am trying to create an interactive plot that shows each group's ...
0
votes
1
answer
327
views
How to create an interactive heatmaply plot with custom text in R?
I have a dataset where I am plotting a heatmap to compare 7 groups. I also have in the data 2 columns with information that I want to include as hover text in an interactive heat map.
My data is 7 ...
1
vote
1
answer
50
views
Is there a way to specify number of kmeans clusters to return in heatmaply
I would like to return a specific number of clusters for my interactive heatmap from heatmaply like I can do with pheatmap and the kmeans_k = argument. Is there a way to do this with heatmaply?
If I ...
0
votes
1
answer
191
views
Is it possible to change the order of columns in heatmaply?
I have created a dendrogram with heatmaply with a dendrogram object from the dendextend package. I was wondering if there is a way to change the order of the columns: vs, am, carb, wt, drat, gear, etc....
0
votes
1
answer
44
views
Add mean values of the columns of the Heatmaply heatmap as an anotation near it
How can I add the mean values of the columns of the Heatmaply heatmap as an anotation near it?
Currently, as a not ideal approach, I run this and got the below figure:
x<- mtcars
mmeans <-round(...
-1
votes
1
answer
939
views
heatmaply + flexdashboard = Error in validateCssUnit(sizeInfo$width) : CSS units must be a single-element numeric or character vector
---
title: heatmaply and flexdashboard don't mix...
output:
flexdashboard::flex_dashboard
---
### Chart 1
```{r}
library(heatmaply)
heatmaply(mtcars)
I saw this question (2018):
R shiny ...
1
vote
0
answers
113
views
Identify cluster number in dendrogram from heatmaply
I am using the heatmaply package to create heatmaps with dendrograms from the dendextend package. Is there a way to identify the cluster numbers on the dendrogram?
This is an example heatmap for the ...
0
votes
1
answer
43
views
R - using heatmaply for a 2d histogram / density
I'm rather new to programming and the site so let me know if I screw up on this explanation.
I have a rather long series of x, y coordinates representing a character in 2d space. Let's say that space ...
1
vote
2
answers
84
views
R: Heatmaply creates empty/ white space in viewer
i tried to create a heatmap with my own data and kept only getting white space. I found this very basic instruction on how to work heatmaply based on the mtcars data. After restarting R (close Window ...
1
vote
1
answer
449
views
Using heatmaply dendrogram sorting in pheatmap
Is there a way of using the dendrogram clustering method used in the heatmaply package and to apply it to a heatmap produced by the pheatmap package? Basically the opposite to what was asked here: ...
0
votes
1
answer
195
views
Clustering in pheatmap and heatmaply R packages
I am using the R heatmaply package to produce interactive heatmaps. I like the software, but I would like to get from it the same clustering (ordering of rows and columns) I get using the pheatmap ...
1
vote
1
answer
131
views
R heatmaply and pheatmap output
I am using the R heatmaply package to produce interactive heatmaps. I like the software, but I would like to get from it the same color output I get using the pheatmap package. Therefore, I would like ...
1
vote
1
answer
234
views
Use heatmaply to create heatmap with raw values/data without transformations?
When creating a heatmap with heatmaply::heatmaply(), some transforms are performed on the raw data. This is evident in the following example where some of the iris dataset is provided, yet hovering ...
0
votes
1
answer
39
views
Association Clusters to Heatmap
I have two seperate dataframes, from one of these I have already created a heatmap from the first dataframe, however I want to add a sidebar that indicates the type of family that a gene is actually ...
1
vote
1
answer
1k
views
heatmaply: adjust the colour
I am using the package heatmaply to visualise single cell expression data.
I want to use custom colours and to assign "yellow" to expression levels > 2 , "magenta" to expression levels < -2. The ...
1
vote
0
answers
37
views
Get the name and values of second member of cluster made at stage1(contains two members only) of heatmaply given the name of one of the members
I have a data frame S=[rows x cols] containing samples s such that rownames tell the names of the samples and colnames tell the features of the respective samples.
In this data frame, i have inserted ...
1
vote
1
answer
692
views
How to add an interactive heatmap to a PDF?
I have created a heatmap in R and heatmaply. I need to add this heatmap to a paper I am publishing. The heatmap is very big and heatmaply's zoom is very useful. Is it possible to add this heatmap - it ...
0
votes
1
answer
218
views
R heatmaply: Show high-expression values on top
Heatmap with high expression values on the bottom
I'm quite new to Rstudio and I'm trying to make a heatmap using the heatmaply function in r, but in some heatmaps (with different data) the high ...
3
votes
2
answers
2k
views
How can I deploy an interactive heatmap by shinyheatmaply
I am trying to deploy an interactive heatmap as a shiny app but not simply an interactive heatmap rather a fancy heatmap by shinyheatmaply but when I am running deployapp nothing happens
This is my ...
1
vote
1
answer
648
views
How to assign correctly low, mid and high color limits with heatmply R package for an interactive heatmap
based on a current visualization project for ngs experiments and functional enrichment analysis results, I'm trying create an interactive heatmap plot of specific biological processes-names in the ...
1
vote
1
answer
671
views
Get row names belonging to each cluster from heatmaply clusters in R
I am trying to get 5 lists of all row elements after using heatmaply in R. I set k_row = 5 so the dendrogram shows 5 different colors. I just want to return a list of 5 lists, where each list contains ...
-1
votes
1
answer
1k
views
Heatmaply sidebar colors, how to show specified colors correctly?
I have a problem, might be a bug in heatmaply or plotly. Colors in the sidebar of a heatmap are not showing the colors I specified. See the code example below, At the end of the code in part # 6) the ...
0
votes
2
answers
947
views
How to calculate the cophenetic similarity between two individual in two dendograms or between two clustering methods?
How can I calculate the cophenetic distance for an individual within two trees (not between two whole trees)?
I want to calculate the similarity/dissimilarity in position per individual within two ...
4
votes
1
answer
352
views
heatmaply color when all elements are the same value
I'm using heatmaply to generate "heatmaps" of binary matrices, where each value in the matrix is a 1 or a 0. I've set 1 to red and 0 to gray, and it works fine. The code looks like so:
library(...
1
vote
1
answer
398
views
Issue with heatmaply when using navbar in shiny
EDIT: I have simplified the application and make it all the code reproducible.
EDIT 2: I just discovered that when I use the navBarPage I must click on Additional Parameters -> Colour. Then is ...
0
votes
0
answers
261
views
How to change color of heatmap plot in heatmaply using dropdown menu in R?
I would like to change color of heatmap plot in heatmaply using dropdown menu in R.
I wrote below code but doesn't work properly. Thank you for your help in advance.
df<-
structure(c(5.91907, 3....
1
vote
1
answer
770
views
How to have an additional coloumn in a heatmaply heatmap
I am using heatmaply to obtain clustered heatmaps of responses from multiple raters on a series of questions rated using the same Leikert scale (ECOG Performance Status). The heatmap comes out well (...
0
votes
0
answers
106
views
troubleshooting heatmaply: how to remove numbers from dendogram
I am integrating the heatmaply package into a shiny app that allows users the option to cluster either by row, column, both, or none. However when the either row or column is selected, the dendogram ...
1
vote
1
answer
56
views
selection the classes of observations using heatmaply in R
The simple example
library(heatmaply)
heatmaply(mtcars, k_col = 2, k_row = 3) %>% layout(margin = list(l = 130, b = 40))
and we get this plot
We see that the observations were divided on 3 ...
1
vote
0
answers
193
views
Error in heatmaply package in R
I would like to create an interactive heatmap plot for my dataset (3109 rows and 12 columns) using heatmaply package in R but got below error:
If I remove the rownames I wouldn't get the error but I ...
0
votes
1
answer
753
views
adding row names to heatmap using heatmaply
I am drawing a heat map of some gene expression in Rstudio, but the row names (which should be samples or gene names) are replaced by numbers. I have checked some posts but no chance. sorry if it is a ...
1
vote
1
answer
172
views
How to fill with grey50 in cells where value=NA and show values in cells where value!=NA in a Heatmap using heatmaply?
I would like to fill with grey50 in cells where value=NA and show the values in dark2 in cells where value!=NA as in the heatmap from Palpacuer et al. Could anyone help me, please?
Here are my data ...
1
vote
1
answer
452
views
correlation heatmap using heatmaply R
I'm trying to create an heatmap on the base of spearman correlation and with dendrogramm corresponding to spearman correlation values.
My input file is composed as follow:
> data[1:6,1:6]
...
3
votes
0
answers
325
views
heatmaply Can't Reorder without Displaying Dendrogram
I wish to reorder the rows but not show the dendrogram with heatmaply, this code runs but doesn't do this:
colorStand <- colorRampPalette(colors = c("blue", "white", "red"))
heatmaply(data, ...
1
vote
0
answers
358
views
Grouping Heatmap Tooltips & View in R + Plotly
I created a heatmap in R using plotly (and tried with heatmaply too). Plotly allows for some pretty standard interactivity, like drag-select to zoom. I'd like to be able to "group" parts of the ...
1
vote
1
answer
192
views
Heatmaply Remove Ticks
I have the following code:
colorStand <- colorRampPalette(colors = c("blue", "white", "red"))
heatmaply(data, margins = c(60,100,40,20), colors=colorStand,
limits = c(-2.5,2.5),showticklabels ...
3
votes
1
answer
1k
views
Interactive heatmap in R
My dataframe looks like:
rankA rankB V1 V2
1 0-1 w 1-2 t 8.636042 10.43002
2 0-1 w 3-5 t 6.495266 10.52126
3 0-1 w 6-10 t 5.480639 10.56230
...
1
vote
2
answers
2k
views
Hot to save html file only from R and htmlwidgets?
I an using R to draw heatmap. Heatmaply and htmlwidget were installed. Fox example i exec following code:
library("htmlwidgets")
library("heatmaply")
heatmaply(mtcars) %>% saveWidget(file="test....
1
vote
1
answer
152
views
Interactive heatmap changing it rows and columns with animation
I want to make a heatmap looks like this one in d3 package in javascript, Is that available in R ? i searched for many packages in htmlwidgets but i couldn't find a package do this graph.
Help please.
...
1
vote
0
answers
198
views
Creating a Heatmap / Heatmaply in R for yearly data
Follow up Heatmap question Creating a heatmap / ordering columns for yearly data in R
Heatmaply
Heatmaply2
The rownames change but my data does not change with this, can I ask for any help on how ...
1
vote
1
answer
362
views
Problems with cellnote in heatmaply
I'm using heatmaply() to create an interactive heatmap for Shiny. I encounter a few challenges when using cellnote = "some values":
cellnote starts in the center of the relevant tile of the heatmap ...
12
votes
2
answers
13k
views
Plotting a clustered heatmap with dendrograms using R's plotly
I'm following this example on how to create a clustered heatmap with dendrograms with R's plotly. Here's the example:
library(ggplot2)
library(ggdendro)
library(plotly)
#dendogram data
x <- as....
5
votes
2
answers
4k
views
Dendrogram with Corrplot (R)
Does anyone have a method to adorn an R corrplot correlation plot with a dendrogram?
2
votes
1
answer
2k
views
Remove row labels from aheatmap and heatmaply (heatmapr)
I would like to remove the row labels from a heatmap with many rows. I need to do this in both heatmaply and aheatmap. However, all the possible options I could think of either result in an error or ...