cluster_tweets: Cluster tweets on an interactive map

Description Usage Arguments Details Value See Also Examples

View source: R/plots.R

Description

Plot into clusters on an interactive map

Usage

1

Arguments

data

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

...

Extra arguments passed to markerClusterOptions

Details

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

Value

Interactive leaflet map

See Also

tileOptions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

## End(Not run)

Twitmo documentation built on Dec. 11, 2021, 10:01 a.m.