statnet / ergm

Fit, Simulate and Diagnose Exponential-Family Models for Networks
Other
96 stars 37 forks source link

Pass ellipsis (...) to lattice::densityplot #507

Closed facorread closed 1 year ago

facorread commented 1 year ago

Making sure density plots and traceplots get arguments passed, as is intended in the argument list to ergm_plot.mcmc.list(). This enables, for example, mcmc.diagnostics(my_ergm, which = "plots", type = "p") to draw points only.

krivit commented 1 year ago

Thanks for the contribution! Can you think of any possible unintended consequences of this?

facorread commented 1 year ago

I don't think there are any unintended consequences beyond what we can expect from, for example, plot.gof passing arguments to boxplot or LogLik passing arguments to upstream likelihood functions.

krivit commented 1 year ago

Merged with thanks.