Heat map in Spotfire on geographic map? - spotfire

Is there any way to create a heatmap in Spotfire overlaid on a map? Such as,
or, from Excel,
I've seen the hexbin function, but the maps it produces are quite different.

Related

Create Normal Distribution curve in Excel

Trying to draw a Bell Curve/Normal Distribution curve with the data set provided, but it is not getting created on Excel. Can anyone help me in creating the same.
https://docs.google.com/spreadsheets/d/1ipDo6WlbmDUBZuuS4ya3ZGD7mkP_vnbByK3KvyLbJ88/edit?usp=sharing
The above file can be used as the data set for creating the curve. Can someone explain me the procedure of how to make a curve with the above data set in Excel?
if your data is normally distributed it should resemble a bell curve.
By "Trying to draw a Bell Curve/Normal Distribution curve", are you referring to a line diagram?
Remember, the bell curve is a histogram of your data. If you inserted a histogram of your data, would that be enough?
If not, what you could do is calculate the standard deviation of your data (and the mean), then you could make a column for different standard deviations and what value we expect it to be.
We could then incorporate that into your old histogram. You could use a "Combo" chart and plot the histogram on one axis and the a line for your calculated values (you can make it smooth if you think it's too sharp. Also, you could decrease the distance between each of your calculated values (1.1, 1.2, ...) instead of let's say halves of standard deviations.
Unfortunately, the data you provided is not at all normally distributed.
So you can't create a bell curve based on this data, no.

How to convert x and y coordinates into a heat map in excel?

I currently have a data set of x and y coordinates (position of an animal in an arena) over a period of time. I just used the coordinates to plot a scatter plot of what that looks like. However, instead of having every single coordinate as a separate point, i was wondering if there was a way to create a heat map of the points? So, the higher the likelihood of the animal in a specific area/ similar coordinates, the warmer the color? Hoping for the final product to be a depiction of the arena with a gradient of colors based on the likelihood the animal explores those regions?
Well with that many points, I don't know if Excel is the right choice if wanting to color-coordinate. The site https://app.rawgraphs.io/ has some really cool graphing capabilities. I use this when needing sankey's or something unusual that Excel cannot easily handle.
Here I used 1500 x/y points between 0 and 20. Then I selected the graph type called "Contour Plot".
Would this work?
Or here's a Hexagonal Binning chart of the same data...

How to Create a Pareto Plot in Spotfire

I am trying to plot a Pareto plot in Spotfire.
I would like it to look like this (I have used some very basic input data):
But so far I can only make it look like this:
I have done this by creating a hierarchy in 'column properties' and ordering names from lowest to highest experience, then flipping both the x and y axis, so that my curve looks like a Pareto plot, but it is not quite the same.
Is there a more efficient way to do this in spotfire that would allow correct y axis display and also allow the names to go along the bottom?
Any help is greatly appreciated.
Thanks
I think I have an answer for you. In this you do not have to flip the y-axis, and I can get the names in the x-axis, but I still use a hierarchy. I'm not sure it's more efficient, but here goes.
First, I created a Hierarchy defined as:
CREATE NESTED HIERARCHY [New hierarchy (2)]
[yearsOfExp] AS [yearsOfExp],
[name] AS [name]
This allowed me to order the category axis by years of experience.
Secondly, I created a calculated column defined as:
Sum([yearsOfExp]]) over (AllNext([yearsOfExp]]))
I then created a line chart. The hierarchy is the x axis and the calculated column is the y axis. When setting the x axis, be sure to "reverse scale".
I hope this does what you're looking for. Good luck. Any questions, just ask.

Conditional heat mapping

I am looking to make a heat map (bubble graph) which allows you to filter what plots on the graph based on a few descriptive criteria.
In the bubble graph, there are three "scoring" variables (x-axis, y-axis and bubble size), but each item in my graph also has two associated descriptive data points. The first data point can be three possible options (x,y,z), and the second data point is a yes, no question. I am looking to be able to filter what shows in the heat map based on the two descriptive criteria.
For example: Only show things in the bubble chart where descriptive criteria #1 = X and descriptive criteria #2 = Yes
I have attached a sample worksheet which might be more helpful to understand what I am looking for.
Thanks
I'd you can do this with most of the charting libraries, but you'll have to write a data filter yourself. Take a look at this example: http://www.amcharts.com/inspiration/motion-chart/
It is based on a famous Gapminder widget. If you click on a continent on the top-right, the bubbles of other continents will become barely visible. This is done by simply looping through the data and setting opacity of all bubbles except the selected continents to some close to 0 value.
Disclaimer: I am the author of amCharts.

Converting a lat/lon values to a small map

I have a list of coordinates of lat/lon values consisting of cities around the world. I have put together a SVG map of the US which I would like to display the major cities of the world as pins on top of the SVG map. So far I've figured out that the map projection that I am displaying is a Mercator projection of the US so the next step is how can I get the X/Y coordinates for that map of the map for each city? Once I get the mercator projection from the lat/lon then how is that converted to X/Y values and then to relative X/Y values based on the size of my map?
The Wikipedia article on the Mercator projection provides the equations you need to implement. The Mercator projection transforms lat/long to x/y, that's what map projections do. All you have to do once you have the x/y values is translate them into (in your case) pixels or whatever measure you use.

Resources