Producing network diagrams often involves working with data formatted in ways that aren’t particularly useful for other purposes, hence one normally needs to spend time reformatting data to produce them. However, the format is pretty standard for all visualisations. Therefore this package should help reduce some of the most repetitive code in these processes to single-line functions.
You can install the package using RStudio’s tool, or via the following code, using the listed file location.
nodemaker
can be used to prepare data for network diagram production. There are three main purposes:
make_nodes()
.make_connections()
.make_edges()
.As an example, say you want to consider how people have collaborated on projects. In this case, the people (or rather their unique IDs) would be the nodes. The projects they have worked on would be the ‘connecting objects’. The edges would show connections between people, based on how many projects they had collaborated on.
It is highly likely any raw source data you draw on will need some further processing before using nodemaker
functions. For example, to filter to a relevant timeframe or status.