This particular example would be really easy were we able to use
RStudio’s manipulate package. That is only for RStudio users
though. Well, not really. There is a simple map available in the
gWidgetsWWW2.rapache package that allows us to easily use that
specification