4,469
questions
0
votes
1
answer
27
views
Combining Two Plots Side by Side in R (heatmap.2 plot)
I have two commands to generate two different plots:
plot(tree, show.tip.label = TRUE, direction = "rightwards", cex = 0.7)
and
heatmap.2(as.matrix(reordered_matrix), Rowv = FALSE, Colv = ...
0
votes
1
answer
38
views
How to prevent the columns to stretch up to the size of the whole chart if less data is provided?
I dont display static data and as such the size of the data varies. I show data for each month (xAxis) and year (yAxis). When the data only fills one row (lets say I have January-December) for only ...
2
votes
1
answer
40
views
How to order axes of geom_tile heatmap with different colours in the upper and lower triangle?
I want to make a heatmap with different colours in the upper and lower triangles. This works as I expect:
library(ggnewscale)
library(ggplot2)
library(dplyr)
data <- data.frame(
Var1 = c("b&...
0
votes
0
answers
14
views
Using gradcam to plot heatmap the detection image by custom trained model of YOLOv6 and YOLOv7
Can anyone help me with how to use Grad-CAM plot a heatmap for detection images using a custom-trained model YOLOv6 and YOLOv7? I have done ploting the heatmap for YOLOv5 and YOLOv8 but the code did ...
1
vote
0
answers
35
views
Plotting an RSSI heatmap with seaborn
I'm trying to plot an interpolated heatmap of RSSI (received signal strength indication) point values on a static map with Python and Seaborn.
The data is in a local InfluxDB but for the sake of this ...
1
vote
0
answers
22
views
Add a pattern on a circos heatmap
I wrote a script to draw a circle heatmap using the package circlize from R. Below is the picture of the plot.
I would like to add some pattern for specific value (stripped for "DeH" and ...
0
votes
1
answer
81
views
Interpolating 3D heat map in matplotlib (XY,C)
I have plotted X,Y co-ordinates in a 2D polar-plot, and I am passing a third value to each co-ordinate that is my third dimension. I am trying to the interpolate between all plotted points, similar to ...
0
votes
0
answers
27
views
R circlize add custom Y axis labels
I have a data set looking at frequencies of 57 attributes selected by a panel to describe a the same sample. I've trimmed the data to the first four selections made and want to plot it as a wheel. I'...
1
vote
1
answer
37
views
R - Add a column to a heatmap that is independent of it to visually see correlations between grouping and a response variable
I've got a large data frame of 800 rows and 30 columns and a response vector of length 800. I'm trying to create a heatmap where I'd like to display the heatmap along with the column, side by side, ...
1
vote
0
answers
38
views
Issue with Vega Altair Heatmap: Cell Appearing Outside the Heatmap
I'm using Altair to create a heatmap based on some feature data. However, I've encountered an issue where one of the cells in the heatmap appears outside of the chart's boundaries when setting maxbins=...
0
votes
1
answer
17
views
Why geom_raster() is not displaying the good columns orders in my heatmap?
I'm using a double triangular matrix (10x10) representing 2 types of correlations between these variables.
The dataset is like this one (4x4).
ff <- data.frame(Var1=as.factor(c("V1", &...
0
votes
1
answer
29
views
Grouping heatmap by a third variable in R ggplot2
I would like to make a heatmap where I order and group the y axis by another variable, for example using this code I can make a heatmap showing carats across cut and color
ggplot(diamonds, aes(cut, ...
1
vote
1
answer
43
views
Redefine x axis in a heatmap seaborn
I have a Dataframe with some cities.
This DataFrame has 5 columns (city, date, and 3 columns about values).
The date value goes from 01/01/2015 to 31/12/2019.
I did a code that plots it. But I need to ...
0
votes
0
answers
42
views
Plotting a 4D graph where X,Y,Z are independent and the fourth dimension is a heatmap that interpolates between points
I have been trying to plot a 4d heat map, where my X,Y,Z components are coordinates and thus independent of one another. I then want to map a fourth component onto each coordinate, and represent its ...
0
votes
0
answers
35
views
Well-spaced color bar labels with short numerical ranges in ggplot2 heat maps [duplicate]
I'm trying to plot a ggplot2 heat map filling it with values that range from 0 to 0.7. I wanted the legend color bar labels to have well-defined spacing, i.e. 0 at the bottom, 0.05 in the middle, and &...
0
votes
2
answers
51
views
Why are values getting converted from int to float in my Seaborn heatmap?
I created a "Total" column and a "Total" row. It was working as expected, displaying the total as an integer, up until the moment when I tried to get Seaborn not to include cells (...
0
votes
0
answers
10
views
Differences in heatmap() in base R and Heatmap() in ComplexHeatmap
I have z-score data of differential gene abundances from metagenomic data. When I use the base R heatmap() function I see a heatmap which contains variability in the rows and columns (in such a way ...
0
votes
0
answers
17
views
ApexChart heatmap lerp between two colors
I am trying to make a heatmap similar to GitHub's contributions chart using ApexChart Heatmap. However, I want to go from gray to blue as the values get higher. I also want to cap the color range, so ...
0
votes
0
answers
37
views
How to add colorbar legend on openlayers heatmap?
https://openlayers.org/en/latest/examples/heatmap-earthquakes.html
When I reviewed the API documentation for the HeatmapLayer, I couldn't find any explanation about the legend. While searching for a ...
0
votes
1
answer
30
views
Heatmap drilldown is not drilling down correctly and not changing xAxis
I am trying to drilldown my heatmap. The drilldown is not working correctly. The xAxis is remaining the same.
My code:
// Substring template helper for the responsive labels
Highcharts.Templating....
0
votes
1
answer
27
views
How can I apply alpha color components in an OpenLayers heatmap gradient?
The code below produces:
However, I have specified that both colors have an alpha value of 0.3, but it is clear that has been ignored.
It is possible to specify an alpha value for the heatmap ...
0
votes
1
answer
82
views
Create python heatmap with two 1D-arrays
I have two very large arrays (80,000+ elements) that i want to create a heatmap for, just like ax.plot draws out the graph but with heatmap values. I don't want to create a 2D-array because of the ...
0
votes
1
answer
54
views
Highcharts Heatmap yAxis labels not rendering properly
HeatMap yAxis categories going inside the last cell instead of the left side outside. It is working fine on the code rendition but as you can see in the image, the yAxis is going inside the final cell....
0
votes
1
answer
39
views
How to output the correlation/euclidian value for the dendogram in pheatmap R?
Using pheatmap in R, I would like to know if there is a way to output the euclidian distance/correlation value used in clustering? I understand that these are represented by the dendogram branches but ...
0
votes
0
answers
21
views
Highcharts heatmap is smushing the data and overlapping
I am trying to create a heatmap but the data is getting all smushed and overlapping. Not use what is wrong with my code.
// Substring template helper for the responsive labels
Highcharts....
0
votes
1
answer
70
views
How to display dynamic (scalable) time labels on a y-axis of a heatmap in python
I am reading a csv file containing 1 column with dates, 1 column with times and 120 columns of integers.
The file may contain many rows (could be over 100,000).
The data points are converted to color ...
0
votes
1
answer
97
views
How to setup Grafana Heatmap From SQL Query with predefined buckets?
I want to build a Grafana Heatmap for the SQL query bucketing data over 15 minute intervals in two predefined buckets. Table view is fine but heatmap view shows both count and bucket.
The query:
...
1
vote
0
answers
102
views
ggplot2 error: "`unit()`: ! 'x' and 'units' must have length > 0" (::grid package in R)?
I'm trying to create a custom ggplot2 geom called geom_geoheat, but I'm running into an error when converting the geom to a grob. I am using ggprotos of GeomTile and GeomRect (where tile inherits most ...
1
vote
0
answers
33
views
multihead self-attention for sentiment analysis not accurate results
i am trying to implement a model for sentiment analysis in text data using self-attention. In this example, i am using multi-head attention but cannot be sure if the results are accurate or not. It ...
0
votes
0
answers
38
views
ComplexHeatmap - Highlight cells by changing alpha
I would like to highlight certain cells in the matrix by changing their transparency (i.e. all cells where highlight_matrix are TRUE should have an opacity/alpha of 0 and be solid colored, while FALSE ...
0
votes
1
answer
27
views
stat_density2d_filled throwing error when used with scale_fill_gradient
I am trying to produce a heat map based on point locations using stat_density2d_filled. Using stat_density2d results in ugly artifacts. stat_density2d works well with scale_fill_gradient, but when ...
0
votes
0
answers
30
views
How to merge multiple dendrogram with a heatmap in R?
I was trying to make a heatmap and hierarchical clustering with a dendrogram of samples.
I'm trying to follow this particular thread from StackOverflow(Merging multiple hclust objects (or dendrograms))...
0
votes
0
answers
35
views
How to set new ticks for axes in heatmap? [duplicate]
I have the following code where parameter1, 2, and alpha_values take decimal values. These are stored as numpy array.
I wanna use heatmap but for axes, I am going to use integer values. However, when ...
0
votes
0
answers
18
views
Overlaying Heatmaps
i need to do a cross analysis with :
Two heatmaps
a: interne data (Blue)
b : externe data (red)
on a map
the idea is the extract the areas where only the blue appears
any suggestions the files are ...
0
votes
0
answers
65
views
How to format the scale bar in my heatmap to display words instead of numbers? [duplicate]
I want to make a heatmap using seaborn and want to format the scale bar in such a way that it displays no numbers only low and high.
import pandas as pd
import matplotlib.pyplot as plt
import seaborn ...
0
votes
0
answers
10
views
Heatmap Italy by province per eur amount
I have R 4.4.0 on my laptop. I have data in terms of EUR per italian provinces (so, a csv file with two columns, Italian province and EUR amount for a variable).
I would like to present this data in a ...
1
vote
1
answer
44
views
Javascript color stop heatmap line canvas
I have a single number data in array (array can be any number length):
I want to create something like this on canvas, present colored data in one line (there are 2 lines on the picture for example):
...
1
vote
1
answer
54
views
create d3 heatmap showing days on one axis and hours on the other?
I want to create a heatmap with d3 showing days (January 1, January 2, etc.) on one axis, and hours (12am, 1am, 2am, etc.) on the other. I have managed to get the data to display, but I'm not sure if ...
1
vote
1
answer
122
views
How to calculate the z-score with replicates?
I have data from an essay. The assay was performed for 6 different cell culture conditions (columns) and for 6 genes (rows). However, it was also performed 5 times per each gene (for statistical ...
0
votes
0
answers
77
views
How to build a HeatMap on yandex maps in react via @pbe/react-yandex-maps
I'm trying to build a heatmap in yandex maps, if use vanilla JS there are no problems but in react-app, I'm not able to understand the documentation like how to import modules.
For Vanilla JS they ...
0
votes
0
answers
18
views
Show/Hide Plotly Heatmap Traces via a Dropdown with External JS
I would like to make a plot that has 15 different heatmap traces and then show/hide them via external javascript, or built-in plotly functionality. I don’t think that visible=‘legendonly’ will work ...
0
votes
0
answers
42
views
Plotly Heatmap Colorbar Displays Ticks in Incorrect Location
I'm creating a 1-line heatmap using plotly, based on this guide. In the original code, the z array is 2 dimensional, and everything works fine. But if z is 1D the tickmarks move for some reason.
Here'...
0
votes
0
answers
30
views
Forging Process Simulation with Forge NxT
I'm currently working on a project simulating the forging process of a screw using Forge NxT. My thermal model involves a two-step approach:
1.Forging Cycle Simulation:
Waiting Time: This step ...
0
votes
1
answer
30
views
How to make a heatmap using seaborn with colored lines as secondary x and y axes
Dear Stackoverflow community;
recently I have been playing around with the Seaborn heatmap function and I was wondering, whether it is possible to use color lines as secondary axes? To be more ...
0
votes
2
answers
84
views
Excel - How do I create a bar chart to show just the conditionally formatted colour scales
I'm not sure this is even possible in Excel however I am trying to create a heat map of pipeline survey data as a bar chart just showing the transient colours.
I have a list of position and current ...
0
votes
0
answers
31
views
The heatmap is not shown for all years in echarts4r calendar
I am using echarts4r calendar displaying four years. The heatmap colors are only working for the first and last year.
Here is the code:
dates <- seq.Date(as.Date("2017-01-01"), as.Date(&...
0
votes
1
answer
37
views
Keep column AND row order in a data set EXACTLY the same as in the HEATMAP
I have a gene expression analysis z-score data frame with the gene names are rows (see dput) and the tissue as columns. The last column ("Cluster") is the result of PAMClustering. How to ...
0
votes
1
answer
42
views
Method for plotting hex code numbers as a dependent variable
I am trying to create a data visualization showing the effects of moisture and temperature on plant stem colors, but the plant stem colors are unique hex codes taken from photographs. I had planned to ...
1
vote
1
answer
40
views
Triangle heatmap of FST distance matrix with p-values [duplicate]
I am trying to create a triangle heatmap of my FST distance matrix:
NWAtl CIV SEN MRT MOR PRT ESP PAL LG JN TUN MLT MR AEG
NWAtl 0 0 0 0 0 0,00098 0,00586 0,01953 0,01465 0,01855 ...
0
votes
0
answers
18
views
When using sns.heatmap and correlation (corr), it is not possible to display all values
How to make the values appear on all cells and not only in the first row?
It should be like this
enter image description here
But it turns out like this
enter image description here
Here is the code I ...