Intensity plot in map using googleVis in R

1k Views Asked by At

I have a long list (around 900 thousand) of latitude and longitude (please note that these coordinates vary up to 13th decimal places) with category of crime done in this coordinates.

This is snapshot of data

data

Problem: I want to plot a heat map irrespective of type of crime done using only latitude and longitude. something like this

heatmap

This is what I have tried using googleVis

M1 <- gvisMap(df_latlong, "LatLong" , "Category",
          options=list(showTip=TRUE, showLine=TRUE, enableScrollWheel=TRUE,
                       mapType='hybrid', useMapTypeControl=TRUE,
                       width=800,height=600))
plot(M1)

map

But this is something else and it is ignoring most of the data. I have no clue how to do it.

Thanks a lot!

0

There are 0 best solutions below