Description Usage Arguments Details See Also
View source: R/plotConnections.R
For each acquisition event, the total connection of each naive individual to informed individuals is plotted for a specified network.
1 2 3 4 5 6 | plotConnections(nbdadata, network = 1, rescale = F, lty = 1,
lwd = 1, col = 2, pchVector = NULL, symbol = NULL,
xlab = "Acquisition event", ylab = NULL, title = NULL,
plotID = NULL, offset = c(0.1, 0), xlim = NULL, ylim = NULL,
titlePos = c(0, 0), averageLinelty = 2, averageLinecol = 4,
averageLinelwd = 1, plotConnectLine = T, plotAverageLine = T)
|
nbdadata |
an object of class |
network |
numeric giving the number of the network for which the connections are to be plotted, i.e. corresponding to
the third dimension of assMatrix in the |
rescale |
logical indicating whether the connections should be rescaled to be plotted relative to the average connection to informed individuals for each event. |
lty |
numeric or string determining the connecting line type, see ( |
lwd |
numeric determining the connecting line width, see ( |
pchVector |
an optional vector of plotting symbols to be used for each type of individual as defined by |
symbol |
an optional vector allowing different symbols to be plotted for each point. e.g. to plot different symbols for
learners an non learners, specify |
xlab |
passed to the |
ylab |
passed to the |
title |
an optional string giving a title for the plot. |
plotID |
an optional vector of names or indentifiers to be plotted next to the symbol for each learner. If |
offset |
an optional numerical vector of length two, specifying where to plot id relative to its corresponding point. |
xlim |
passed to the |
ylim |
passed to the |
titlePos |
an optional numerical vector of length two, specifying where to plot the title. |
averageLinelty |
numeric or string determining the average line type, see ( |
averageLinecol |
numeric or string determining the average line colour, see ( |
averageLinelwd |
numeric or string determining the average line colour, see ( |
plotConnectLine |
logical specifying whether a connecting line is to be plotted. |
plotAverageLine |
logical specifying whether an average line is to be plotted. |
The individual to learn each event is plotted in red and these are connected by a red line (by default). A dotted line showing the average connection to informed individuals each event is plotted in blue (by default). If the order of acquisition does not follow the network in question, we would expect the red points to be distributed evenly above and below the blue line. The more closely the order of acquisition follows the network, the more points will be above the blue line and the higher they will be above it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.