Inverness street maps

[This article was first published on HighlandR, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Taras Kaduk produced a beautiful street map here and I decided to try it, but for Inverness.

Initially I followed his code very faithfully, and produced a nice plot, but upon uploading the image to GitHub, and seeing it rendered against a dark background, I decided to try another version with {ggdark}.

These are quite large images, so I am just going to show snippets of them here.

Version 1 – Nice!

Then I saw some images showing the Ness River area at night, which is enhanced by lots of coloured lights under bridges and along the river banks.

So I played around with some colours – yellow-ish for the railway line, deep pink for streets, and a teal colour for major roads. I think it looks OK, you may disagree :

Finally, I realised I was missing something quite major – the Caledonian Canal, which runs through the city to Loch Ness and beyond. Following a link from Taras’s blog, I found myself quickly grasping what needed to be done – I also added some bays, but left them out of the final plot. This one looks a but disjointed because the Canal is so long (Loch Ness is 23 miles long, for some perspective) but I think the plot is OK. I should maybe have picked out a more exciting colour than ‘blue’ for the canal, but it cuts through the loch and other waterways quite well.

Remember these are just screen shots of parts of the full images, so you might like to take a look at the final plots.

Code here if you’re interested

Thank you again to Taras for the original code, and for keeping it up to date otherwise this would not have been possible.

To leave a comment for the author, please follow the link and comment on their blog: HighlandR.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)