Description Usage Arguments Value Examples
View source: R/rtweettree_plot.R
Create ggraph object with profile pictures added
1 | add_profile_pics_to_tree_ggraph(g1, df_profile_pic)
|
g1 |
tbl_graph object |
df_profile_pic |
tibble of profile pictures, generated by 'scrape_profile_pics()' (see examples). |
ggraph object of tweet tree with profile pictures
1 2 3 4 5 6 7 8 | ## Not run:
rtweettree_data_scraped <- rtweettree_data("1438481824922181635")
g <- rtweettree_tbl_graph(rtweettree_data_scraped)
g1 <- ggraph(g)
g1 <- add_profile_pics_to_tree_ggraph(g1, rtweettree:::scrape_profile_pics(tidygraph::as_tibble(g)))
g1 + ggraph::geom_edge_diagonal(aes(color = type)) + ggraph::geom_node_point(aes(shape = type))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.