Skip to content

Commit

Permalink
Bug edits
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmagerber committed Feb 27, 2024
1 parent c40667f commit e2aa9af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/mcmc_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ mcmc_plots <- function(x, flow, xranges = FALSE, ...) {

### Four input types accepted (mcmc, matrix, data.frame, multi_net_output)
if (is.data.frame(x) | inherits(x, "mcmc")) {
z <- coda::as.mcmc(x)

z <- as.data.frame(x[[paste0(flow)]])
colnames(z) <- paste0(flow)
z <- coda::as.mcmc(z)

} else if (inherits(x, "multi_net_output")) {
all <- as.data.frame(x[["solved.flow.values"]])
z <- as.data.frame(all[[paste0(flow)]])
Expand Down

0 comments on commit e2aa9af

Please sign in to comment.