plot.gofit: Plots a gofit object

Description Usage Arguments Examples

View source: R/gofit.R

Description

Plots a gofit object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'gofit'
plot(
  x,
  y,
  type = c("line", "box"),
  scaling = c("none", "std", "sqrt"),
  lineAlpha = 0.06,
  lineSize = 1,
  ...
)

Arguments

x

the gofit object

y

unused

type

type of plot, boxplot or lineplot

scaling

type of scaling of the network statistics. If "std", network statistics are scaling by subtracting off the observed statistics and scaling by the standard deviation. If "sqrt", network statistics are plotted on the square root scale (The square root is the variance stabilizing transformation for a Poisson random variable). The default is "none", where by the network statistics are not scaled.

lineAlpha

The transparency of the simulated statistics lines

lineSize

The width of the lines

...

passed to either boxplot or geom_line

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(network)
data(ukFaculty)

# Delete vertices missing group
delete.vertices(ukFaculty, which(is.na(ukFaculty %v% "Group")))

# A dyad independent model
fitind <- lolog(ukFaculty ~ edges() + nodeMatch("GroupC") + nodeCov("GroupC"))
summary(fitind)

# Check gof on degree distribution (bad!)
gind <- gofit(fitind, ukFaculty ~ degree(0:50))
plot(gind)
plot(gind, type="box")

lolog documentation built on July 1, 2021, 9:09 a.m.