minor changes when creating raster plot

Added option for specifying resolution when constructing the raster