# Network Visualizations of Code Collections (funspotr part 3)

**rstats on Bryan Shalloway's Blog**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

In previous posts and threads I’ve alluded to the potential utility of visualizing the relationships between parsed functions/packages and files as a network plot.

It can be helpful to review the relationship between your #rstats code files by looking at a network graph of them by packages loaded.

— Bryan Shalloway (@brshallo) March 16, 2022

Graph of 50+ of my gists (squares) and packages (circles) used.

That node at the center is {dplyr}. pic.twitter.com/XmNxOrgDtF

I added the function `network_plot()`

to funspotr. In this post I’ll simply output the network plots of the parsed-out packages from the code collections discussed in the prior two posts:

- Identifying R Functions & Packages Used in GitHub Repos (funspotr part 1)
- Identifying R Functions & Packages in Github Gists (funspotr part 2)

library(dplyr) library(funspotr)

# Interactive network plots

The network plots show files as squares and packages as circles, edges represent cases where a package is used in a given file^{1}.

## Julia Silge Blog

readr::read_csv("https://raw.githubusercontent.com/brshallo/funspotr-examples/main/data/funs/jsilge-blog-funs-20220114.csv") %>% # not including base R or any custom functions or packages I don't have installed filter(!is.na(pkgs), !(pkgs %in% c("base", "(unknown)"))) %>% network_plot(to = pkgs)

**leave a comment**for the author, please follow the link and comment on their blog:

**rstats on Bryan Shalloway's Blog**.

R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.