- This is (was?) largely updated by @rinewithoutacat for the Trans Formations Project. They're releasing it to you, because they want orgs and researchers to be supported in doing important legislative work!
- This is coded in R, which is why it is the "tfp-data-r" repository. :)
- The link for the live interactive map is in the tests is via the TFP github site directory and is here: https://transformationsproject.github.io/static/widgets/leaflet_map.html (Note: This will change! But for now, via this link is easiest.)
- The code for this is the .Rmd file in the "Leaflet Widget" directory here. (Note: there are now two maps, Active and Passed. Whatever works at the above link is what's on the TFP homepage.)
- You will need an API key for Legiscan + Airtable to make things run!
- Please run with this code! And let me know what you're building with it, or what you're learning, if you can—I am curious how this might take on a life of its own.
- R script for "bills active" map for TFP landing page
- R script for "bills passed" map for TFP landing page
- R script and examples of bar charts for different kinds of bills
- R script for generating colored graphs by type and active/failed/passed: It's not an R markdown file so it's just code, but running all creates an updated version of all graphs by type. Running all should just run, but note has the Trans Formations Legiscan API key and Rine's Airtable key (fine for TF use, just hide if external)
- Leaflet map options R markdown file
- Leaflet map options as HTML: should be visible wihen downloaded as a 'stitched-together' Rmarkdown file that has interactive, embedded maps
- Leaflet map of passed bills as HTML: shoudl be visible when downloaded or visiting the live page