autoplot.character: Plot rtweettree

Description Usage Arguments Details Value Examples

View source: R/rtweettree_plot.R

Description

Plot a tree graph of the data resulting of the 'status_id' of a tweet.

Usage

1
2
## S3 method for class 'character'
autoplot(x, add_profile_pics = TRUE, ...)

Arguments

x

rtweet status_id (character string), rtweettree_data or rtweettree_tbl_graph object. The object is first transformed to a rtweettree_tbl_graph which is then plotted with ggraph.

add_profile_pics

logical whether to add the profile pictures of the users to the graph; defaults to TRUE; (should be set to FALSE for large graphs)

...

arguments passed to methods

Details

The following functions are imported and then re-exported from the ggplot2 package to avoid loading them.

rtweettree exported operators and S3 methods

Value

An rtweettree ggraph plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
main_status_id <- "1438481824922181635"
## Not run: 
rtweettree_data_scraped <- rtweettree_data(main_status_id)
ggplot2::autoplot(rtweettree_data_scraped)
# when you're not interested to store the scraped data in an R object,
# you can also directly plot it with:
# autoplot(main_status_id)

## End(Not run)
# With package example dataset included:
ggplot2::autoplot(rtweettree_data_example)

urswilke/rtweettree documentation built on Oct. 14, 2021, 6:32 p.m.