Learn R Programming

GERGM (version 0.13.0)

conditional_edge_prediction_correlation_plot: A Function generate a scatter plot of observed vs predicted edge values.

Description

Scatter plot of observed vs. predicted edge values generated by the `conditional_edge_prediction()` function. Also calculated correlation coefficient.

Usage

conditional_edge_prediction_correlation_plot(edge_prediction_results,
  xlim = NULL, ylim = NULL, plot_max_entropy_predictions = FALSE)

Arguments

edge_prediction_results

A list object returned by the `conditional_edge_prediction()` function.

xlim

Defaults to NULL, but can be set by the user if desired to a numeric vector of the form c(lower,upper) for observed edge values.

ylim

Defaults to NULL, but can be set by the user if desired to a numeric vector of the form c(lower,upper) for predicted edge values.

plot_max_entropy_predictions

Defaults to FALSE, can be set to TRUE to show maximum entropy edge predictions as red X's.

Value

Saves a PDF plot to the current working directory