Chris Hagyard
chris-hagyard.bsky.social
Chris Hagyard
@chris-hagyard.bsky.social
#OpenData and #Rstats enthusiast currently with #CriminalJustice #Data

# fly to CECC
mapboxgl(style = mapbox_style("standard-satellite"), centre=c(-97.6,25.4)) %>%
fly_to(center = c(-78.7303, 44.379), zoom = 16.7, pitch = 75, bearing = 136.8, duration=16000)

Output will be in RStudio Viewer, select Export Save as Web Page for the HTML
December 6, 2024 at 1:57 PM
Hi, yes, thanks to @kylewalker.bsky.social 's {mapgl} package, which allows #rstats users to use Mapbox GL JS in R, you can create this fly-to in just 2 lines of code, and thanks to the #OpenData that provides the lat/longs you can swap out the coordinates to map any institution in seconds!
December 6, 2024 at 1:57 PM
This #Mapbox fly-to of Ontario's CECC was created using this #OpenData in the #rstats package {mapgl} inspired by an example from the #30DayMapChallenge quick and easy to recreate using this available open data.
December 5, 2024 at 9:20 PM
This is one of over thirty datasets publicly shared by SOLGEN as #OpenData . It's machine-readable, geocoded, and with a data dictionary to support reuse by data analysts. #GIS #Maps #OpenGov #PublicData
December 5, 2024 at 9:20 PM