-
Notifications
You must be signed in to change notification settings - Fork 13
Visualizing your Network
borretts edited this page Sep 21, 2017
·
5 revisions
This page illustrates how to use visualize a network model using the tools in enaR and the network package.
The first step is to prepare the workspace.
rm(list = ls())
library(enaR)
library(network)
Then we can load the library of models and select one to use for this illustration.
# load data
data(enaModels) # load library of Ecosystem Networks
names(enaModels) # view model names
m <- enaModels[[9]] # select the oyster model
We can then create a simple plot of the model with the default graphics parameters as
# Set the random seed to control plot output
set.seed(2) # this is only used to ensure our plots look the same.
# Plot network data object (uses plot.network)
plot(m)
This generates the following figure.