Hello Stack Overflow community,
I have a mass spectrometry dataset with the following columns: rt, masses, and intensities. The dataset is quite large, consisting of around 300,000 rows. Here is a sample of the data:
rt | masses | intensities |
---|---|---|
0.007408 | 72.927505 | 2.0 |
0.007408 | 72.928589 | 1.0 |
0.007408 | 72.934021 | 20.0 |
0.007408 | 72.935104 | 10.0 |
0.007408 | 72.936188 | 38.0 |
rt : 0 to 1
masses : 0 to 1000
intensities : 0 to 60k
would like to create a contour plot of this data using the rt values on the x-axis, the masses values on the y-axis, and color-coded by the intensities. I came across the Hvplot library and noticed the .image() function, but it doesn't seem to create the density contour around the data points that I'm looking for.
Can anyone suggest an efficient way to create a contour plot for my data using Hvplot or any other library that would suit my needs? Your help would be much appreciated!
Thanks in advance!