View an ERGM Table in the RStudio Viewer or System Browser
Source:R/tabulergm_table.R
tabulergm_view.RdBuilds a self-contained HTML page containing the formatted ERGM table
(with MathJax for LaTeX math rendering) and opens it in the RStudio
viewer pane when available, falling back to utils::browseURL().
Usage
tabulergm_view(object, ...)
# S3 method for class 'ergm'
tabulergm_view(object, ...)
# S3 method for class 'formula'
tabulergm_view(object, ...)Arguments
- object
- ...
Additional arguments passed to
tabulergm_table().
Methods (by class)
tabulergm_view(ergm): Method for fitted ergm objects.tabulergm_view(formula): Method for formula objects.
Examples
library(ergm)
fit <- readRDS(system.file("fits", "fit_edges.rds", package = "tabulergm"))
tabulergm_view(fit)
#> Warning: This object was fit with ‘ergm’ version 4.9.0 or earlier. Summarizing it with version 4.10 or later may return incorrect results or fail.
# Also works with a formula (shows term metadata only)
tabulergm_view(network ~ edges + triangle)