Reply To: Color coding of data points on maps

#6978
Jonathan Sandoe
Keymaster

It’s definitely not a beginner data move, but it can be done. Someone else may have a better way of doing this in CODAP, but here is mine.

1. First we have to create the categories for the different temperature ranges. In the Case Table create a new attribute, like “temp-range”.

2. Create a formula for ‘temp-range’ that creates a categorical value for each temperature. It’s a complicated looking formula, but it boils down to a repetition of a simple idea: “if(temp<60, ‘cold’, if(temp<70, ‘chilly’, if(temp<80, ‘moderate’, if(temp<90, ‘warm’, ‘hot))))”

3. Now open a graph and drag “temp” to the x axis and drag “temp-range” to the middle of the graph. You should see the dots in the graph with different colors assigned to each category, but probably the wrong colors.

4. Now open the “paintbrush menu” in the graph.  This menu will permit you to assign your desired color to each of the possible values of ‘temp-range’.

5. If the data set has latitude and longitude assigned to each case, when you open the map, the points will be colored appropriately.

Hope this makes sense to you.

— Jonathan