ropensci / auunconf

repository for the Australian rOpenSci unconference 2016!
18 stars 4 forks source link

R package for storage/mapping of Australian-specific data sets #23

Open jonocarroll opened 8 years ago

jonocarroll commented 8 years ago

(I've done nothing in the way of seeing if anything like this already exists, so this may be a non-starter).

In a similar-yet-different approach to a previous entry, and which could tie in with #20, #16, and #6, what about suring up some Aussie maps with appropriate meta-data? States/boundaries/local boundaries/major and minor cities/etc...

I know that ggmap::get_map can get the ball rolling on a location, but I'd like to see (if it doesn't already exist) a package that loads up a heap of up-to-date and historical Australian data sets that can be added to a stored shapefile map, with the appropriate level factors to do so by state/city/etc... possibly without having to refer to an external map source.

plot_map_AUS("average_rainfall", "Adelaide", 2014)

If one was doing an analysis on such data, that could be extracted and processed however one liked,

histRainData_Adelaide <- plot_map_AUS("average_rainfall", "Adelaide", 2004:2014, plot=FALSE)

No more going and getting the ll/ul/lr/ur from the map bounding box, no more manually looking up a lat/lon to go get a map, or having to wait for the Google API limit to reset. Plot the Australian data NOW.

jonocarroll commented 8 years ago

I'd also love to see a new ggplot2 geom or theme that plots either Australia as a whole (incl. Tas) or as an exploded view.

The first of those seems well-covered for the USA. The latter, well, that's left as an interesting option.

Stephen-Gates commented 8 years ago

Here's the data to go with that. But it's the current boundaries as opposed to boundaries over time (remember when Qld was part of NSW?)

dicook commented 8 years ago

The pedestrian sensors of Melbourne Open Data portal (https://data.melbourne.vic.gov.au/Transport-Movement/Pedestrian-Counts/b2ak-trbp) could be a good one to get packaged in, if the JSON api can be utilized.

And it would be good to make a different animation using R as an alternative to what is shown on the web site.

jonocarroll commented 8 years ago

@dicook sources like that would be very useful as 'cool things to plot on a map'. I have in mind something similar to the LocationSA Map Viewer (though not necessarily interactive) with a variety of plot-ready data sets and a consistent mapping scheme.

I'm working on a similar thing with vehicle traffic in Adelaide with leaflet/shiny myself and nearly have the point-to-point route code sorted so I can overlay routes taken (correlated bluetooth captures at traffic lights).

dicook commented 8 years ago

@jonocarroll are you suggesting that I list this as a separate topic? that it doesn't fall under what you were thinking for this issue?

jonocarroll commented 8 years ago

@dicook not at all, that repository looks to have some good data sets that could very well be included in my propsal, that pedestrian one in particular.

dicook commented 8 years ago

excellent! looking forward to this!

Daniel-t commented 8 years ago

Brisbane's Open Data (http://data.brisbane.qld.gov.au) program is getting underway and I know they are looking for suggestions for data to provide, so they will be interested in trying to provide anything city specific as well.

There are some Brisbane based datasets available, such as:

(Disclaimer: I work for them)

-Daniel

jonocarroll commented 8 years ago

Looks like raster::getData already has the shapefile retrieval bit covered pretty well...

Cheers for that, Adam!

ivanhanigan commented 8 years ago

Great to see these data, but where is the metadata a la https://github.com/ropensci/auunconf/issues/11 and https://github.com/ropensci/auunconf/issues/18? looking forward to working on this in the near future.