plot.gofit function

Plots a gofit object

Plots a gofit object

## 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

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")