Forum Replies Created
-
AuthorPosts
-
Bill Finzer
KeymasterI agree we need much better documentation on how to get boundaries in maps. We’re very close to having maps able to display multiple layers of points and boundaries together in the same map. That will definitely require new (and better) documentation.
Thanks for your feedback.
Bill
Bill Finzer
KeymasterHi Andrew,
In addition to the boundary attribute that contains the formula, you’ll need another attribute for the names of the states. Let’s say you called that attribute state_name. Then your formula for the boundary would be:
LookupBoundary(US_state_boundaries, state_name)
Then enter the names (or abbreviations) of states in the cells in the state_name attribute column of the table.
If you already have a map open, you may need to close it and open another one after you’ve got your attributes defined. (I’m working on a fix for this right now!)
Bill
Bill Finzer
KeymasterHello Andrew,
Your post relates to a powerful and interesting capability of CODAP, one that has been used by a number of projects.
The Map Data example pulls in state boundaries with a formula:
lookupBoundary(US_state_boundaries, state)
There are four other sets of boundaries available by these means: US_congressional_districts, US_county_boundaries, US_puma_boundaries, and country_boundaries. You can see documentation for how to do this in the formula editor under lookupBoundary as shown in the screenshot I’ve enclosed.
If an attribute is named one of ‘boundary’, ‘boundaries’, ‘polygon’, ‘polygons’ (case independent), CODAP will attempt to use it to plot boundaries in a map. If the type of an attribute is boundary as specified using attribute properties, it won’t matter what the name is.
The boundaries themselves are expressed in geojson which you can read about on the web. You can actually paste geojson into a value and have it display a boundary on a map.
There are online utilities for converting SHP files to geojson. Then you can export these to ‘csv’ and import them into CODAP.
I hope this helps you get started!
Bill
Attachments:
Bill Finzer
KeymasterHi Heinrich,
You have definitely revealed a bug, but there is a nice workaround. Put the days on the y-axis instead of the x-axis. You can do this on a second graph if you like, and as you drag the days in this second graph, they will also reorder in the original graph.
Meanwhile, I’ll log the bug.
Thanks,
Bill
Bill Finzer
KeymasterHi Sue,
Glad you got that to work! The sample attribute is typed as “categorical” just for this purpose.
Don’t hesitate to ask for help with the Sampler.
Bill
Bill Finzer
KeymasterHi Andee,
Excellent point, and I’ll log it as a story.
You probably know this, but you can change the color corresponding to the category that has been assigned gray using the ‘brush’ menu on the graph inspector. (But you can’t change color assigned to missing values.)
Bill
Bill Finzer
KeymasterHi Andee,
It would be very nice to be able to combine categories using a graph. (TinkerPlots gives you a way of doing this.) I’ll add it as a feature request.
You don’t have to write a formula, though. As shown in the screen capture, you can use the case table to group by the attribute that has the categories you want to combine. Create a new attribute in which you copy the existing category names, except where you want to combine.
Hope that helps!
Bill
Attachments:
Bill Finzer
KeymasterPerhaps. Alternatively we could just get rid of Insert Case. Thanks for the suggestion.
July 31, 2018 at 4:13 pm in reply to: Possible explanation for thinking I wasn't getting a copy #661Bill Finzer
KeymasterLooking into it.
Bill Finzer
KeymasterYou’re right. If you want a second document, then choose New. This will open a new CODAP tab. (But I believe it will not know about your last location on Google drive. Sorry.)
Bill Finzer
KeymasterHi Andee,
You should be able to Undo most everything. Getting an Error is evidence of a bug.
Fortunately, I just checked, and this particular bug is fixed in the next release of CODAP.
Thanks for the bug report! We really appreciate it.
Bill
Bill Finzer
KeymasterHi Christine,
At the moment CODAP will only plot points from one dataset, and you don’t have the ability to choose which one. So, the only workaround I can suggest is that you make documents with just one of the datasets at a time.
We are working right now on giving you full control over as many point or polygon map layers as you like from as many different datasets as you like. This should release around the end of August.
Bill
Bill Finzer
KeymasterI find that if I don’t close the document but go straight to Open, I get taken to the same place.
Clearly this area needs work!
Bill Finzer
KeymasterHi Andee,
Good catch with the ambiguous instructions.
It should say something like “Click in an empty cell in the bottom row.”
Bill
Bill Finzer
KeymasterHi Andee,
Definitely a bug. Thanks for letting us know.
Bill
-
AuthorPosts