Questions tagged [heatmaply]
heatmaply is an actively maintained open-source heatmap package for R, based upon the plotly R and JavaScript libraries.
39
questions
0
votes
1answer
26 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
2answers
26 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
1answer
41 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
0answers
21 views
In a co-occurence matrix, how to extract information from the elements and show it as hovertext in a heatmap?
Im a beginner in R, and this is my first question here.
I have calculated a co-occurrence plot as were done in this question : How do I calculate the co-occurrence in the table? with the example of ...
0
votes
1answer
76 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
1answer
51 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
1answer
44 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
1answer
24 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
1answer
59 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 ...
0
votes
0answers
20 views
Heatmaply in RStudio yields no results
I am trying to create a heatmap in RStudio using the function heatmaply.
However, if I apply it to the built-in dataset mtcars for example, I get no reply at all.
No errors, it simply runs and I see ...
1
vote
0answers
31 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
1answer
213 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
1answer
80 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
2answers
559 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
1answer
141 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
1answer
261 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
1answer
380 views
Heatmpaly 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
2answers
409 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
1answer
162 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(...
0
votes
1answer
210 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
0answers
157 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
1answer
387 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
0answers
80 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
1answer
48 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
0answers
132 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
1answer
428 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
1answer
127 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
1answer
291 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
0answers
248 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
0answers
248 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
1answer
99 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
1answer
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
2answers
929 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
1answer
142 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
0answers
176 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
1answer
295 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
2answers
10k 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....
3
votes
2answers
2k views
Dendrogram with Corrplot (R)
Does anyone have a method to adorn an R corrplot correlation plot with a dendrogram?
2
votes
1answer
1k 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 ...