Extend `plot` for custom class. Add a 'type' variable to select between `ggplot2` and `leaflet`.
Extend
plotfor custom class. Add a 'type' variable to select betweenggplot2andleaflet.