Description Usage Arguments Details Value Examples
View source: R/rtweettree_plot.R
Plot a tree graph of the data resulting of the 'status_id' of a tweet.
1 2 |
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 |
The following functions are imported and then re-exported from the ggplot2 package to avoid loading them.
rtweettree exported operators and S3 methods
An rtweettree ggraph plot.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.