plot.gof_mlergm {mlergm}R Documentation

Plot goodness-of-fit results

Description

Produces goodness-of-fit plots for a gof_mlergm object in order to visualize and assess the fit of an estimated model produced by mlergm.

Usage

## S3 method for class 'gof_mlergm'
plot(
  x,
  ...,
  individual_plots = FALSE,
  save_plots = FALSE,
  show_plots = TRUE,
  width = 8,
  height = 4.5,
  cutoff = NULL,
  x_labels = NULL,
  x_angle = 0,
  x_axis_label = NULL,
  y_axis_label = "Count",
  plot_title = "",
  title_size = 18,
  axis_label_size = 14,
  axis_size = 10,
  line_size = 1,
  x_axis_label_size = NULL,
  y_axis_label_size = NULL,
  x_axis_size = NULL,
  y_axis_size = NULL,
  pretty_x = TRUE
)

Arguments

x

An object of class gof_mlergm, produced by gof.mlergm.

...

Additional argument to be passed if necessary.

individual_plots

(Logical TRUE or FALSE) If TRUE, individual gof plots are produced. Defaults to FALSE.

save_plots

(Logical TRUE or FALSE) If TRUE, the individual GOF plots are saved.

show_plots

(Logical TRUE or FALSE) If TRUE, the plots are printed to the screen, and if FALSE no plots are displayed. This may be helpful when the only desire is to save the individual GOF plots.

width

If save_plots == TRUE, controls the plot width dimension saved.

height

If save_plots == TRUE, controls the plot height dimension saved.

cutoff

For statistics that are distributions (e.g., degree distributions), specifies a cutoff point. Dimensions past the cutoff are ignored and not plotted.

x_labels

Character vector specifying the statistic names or labels.

x_angle

Adjusts the angle of the x axis tick labels (typically the statistic names).

x_axis_label

Label for the x axis.

y_axis_label

Label for the y aixs.

plot_title

Title for the plot.

title_size

Font size for the plot title.

axis_label_size

Font size for the axis labels. Individual axes label sizes can be changed using x_axis_label_size and y_axis_label_size which are detailed below.

axis_size

Font size for the axis tick labels. Individual axes tick label sizes can be changed using x_axis_size and y_axis_size which are detailed below.

line_size

(Numeric, non-negative) If line_size is positive, then a red line will be plotted to indicate the observed network value of the statistic. If line_size is equal to zero, then the observed data line will not be plotted.

x_axis_label_size

The font size of the x axis label. When NULL, axis_label_size is used. Defaults to NULL.

y_axis_label_size

The font size of the y axis label. When NULL, axis_label_size is used. Defaults to NULL.

x_axis_size

The font size of the x axis tick labels. When NULL, axis_size is used. Defaults to NULL.

y_axis_size

The font size of the y acis tick labels. When NULL, axis_size is used. Defaults to NULL.

pretty_x

(Logical TRUE or FALSE) If set to TRUE, the link{pretty} function will be called to format the x-axis breaks. This can be useful for when the x-axis range is large.


[Package mlergm version 0.8 Index]