Learn R Programming

Twitmo (version 0.1.2)

cluster_tweets: Cluster tweets on an interactive map

Description

Plot into clusters on an interactive map

Usage

cluster_tweets(data, ...)

Arguments

data

A data frame of tweets parsed by load_tweets or returned by pool_tweets.

...

Extra arguments passed to markerClusterOptions

Value

Interactive leaflet map

Details

This function can be used to create interactive maps on OpenStreetView.

See Also

tileOptions

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(Twitmo)

# load tweets (included in package)
mytweets <- load_tweets(system.file("extdata", "tweets_20191027-141233.json", package = "Twitmo"))

pool <- pool_tweets(mytweets)
cluster_tweets(mytweets)

# OR
cluster_tweets(pool$data)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab