Bhaskar Karambelkar's Blog

  • RStudio IDE Shortcuts learned at Rstudio::conf 2017

    I made this doc to aggregate all the keyboard shortcuts from Kevin Ushey’s talk: What’s New in the IDE? at RStudio::conf 2017 in one place. Everything is lifted from his slides. If you find this one page summary useful thank him not me.

  • Setup OSX for R

    This is a rather details documentation of my OSX setup for R usage using homebrew. You can get away with a lot less than what I have installed below, but this is fairly comprehensive and I have also given some steps to verify installation of various packages.

  • Leaflet Diary: Chapter 4, Towards Version 1.1

    This is the fifth blog entry in my series ‘Leaflet-Diary’. In my last post Chapter 3, Making Leaflet Extensible, I talked about changes that were made to the Leaflet package to make it extensible. This one is about phase IV, making the Leaflet package ready for a CRAN version upgrade. TL;DR Version A major issue related to missing or incomplete data was fixed. Shapes (Polylines/Polygons/Circles/Rectangles) can now be easily highlighted on mouse over.

  • GDAL 2 On Mac with Homebrew

    This is a small post about upgrading to gdal 2.1.1 on a Mac using homebrew. Assumptions You have homebrew installed and setup. You already have gdal 1.x installed via homebrew’s default ‘gdal’ formula. Install gdal 2.1.1 Unlink gdal 1.x usingbrew unlink gdal Tap into osgeo4mac brew tap osgeo/osgeo4mac && brew tap --repair Install gdal2. brew install gdal2 --with-armadillo \ --with-complete --with-libkml --with-unsupported Link gdal2brew link --force gdal2

  • Leaflet Diary: Chapter 3, Making Leaflet Extensible

    This is the fourth blog entry in my series ‘Leaflet-Diary’. In my last post Chapter 2: Projections and then some, I talked projections, easy button support and upgrading leaflet to 0.7.7. This one is about phase III, making the Leaflet package extensible and allowing for users to integrate many more Leaflet plugins. TL;DR Version Some bugs were squashed. Leaflet package is now extensible. You can write your own R package that augment core leaflet functionality by incorporating various plugins.

  • Leaflet Diary: Chapter 2, Projections and then some

    This is the third blog entry in my series ‘Leaflet-Diary’. In my last post Chapter 1: Plugins galore, I talked about upgrading existing plugins and adding any missing functionality to those plugins. This one is about phase II, where I’ve added two extremely powerful features, custom projection support and custom buttons/toolbars and also upgraded Leaflet JS to 0.7.7. TL;DR Version Leaflet Javascript has been upgraded from 0.7.3 to 0.

  • Leaflet Diary: Chapter 1, Plugins Galore

    This is the second blog entry in my series ‘Leaflet-Diary’, the first entry was nothing more than me announcing to the world that I’m contracting with RStudio for adding new features to the Leaflet package. This one is about what has been done so far and what’s cooking. My plan of attack was, before adding any new features or fixing any bugs upgrade the Leaflet javascript library and existing plugins to their respective latest stable versions.

  • Leaflet Diary: Prologue

    Sometime in Sep./Oct. 2015 I was working on a research effort that required building some web and print maps. Not a whole lot of GIS analysis but simply plotting some data on map for better representation. I had joined the project mid-way and the first editions of the maps were screen shots of Google MapsTM. Needless to say the were aesthetically hideous and not interactive. So I set about to find a better alternative to mapping and stumbled on leaflet for R by RStudio.

  • My Thoughts on Northwestern University's MSPA

    This is my review of Northwestern University’s Masters in Predictive Analytics (MSPA) online degree. I enrolled in MSAP in the Summer of 2013 and finished in the Summer of 2016. Normally it shouldn’t take this long to finish this program, but I took a break after the first Q1/015 and resumed in Q1/2016. This blog post is a retrospective analysis of the program, what I got out of it, and what it meant to me.

  • Alternative to using legends in ggplot2

    Recently I got hold of some regional spending forecast data. I quickly plotted it using ggplot2, and here’s the first version of it. Figure 1: First Attempt The data is from 2014 and the values from 2015 to 2019 are the forecasted values. For now don’t worry about the validity of this data or the lack of margin of error in the forecasted values. Lets just concentrate on the problems with the visual elements of this chart.

© 2015 Bhaskar V. Karambelkar. All rights reserved.