R: Plot a heat map from geotweets or SpatialPointsDataFrame
theatmap
R Documentation
Plot a heat map from geotweets or SpatialPointsDataFrame
Description
Plot a heat maps base o 2d density estimation
Usage
theatmap(geotweets, vpoints=FALSE)
Arguments
geotweets
Geotagged tweets as a SpatialPointsDataFrame or a SpatialPointsDataFrame.
vpoints
By default FALSE. TRUE option will plot tweets points over the density map.
Details
This funtion is base on ggmap. It is a fast way to plot a density map, actually it can work with any SpatialPointsDataFrame. To customize your output, more information is available in the ggmap documentation page https://cran.r-project.org/package=ggmap
Note
It works only with small region if you have tweets for all over the world it won't work properly. To get a subsample of the geotweets for a specific region use tsubset.