Skip to content

Commit

Permalink
Plotting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpghayes committed Jul 31, 2024
1 parent 8fde63c commit 21ea711
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ expectation.directed_factor_model <- function(model, ...) {
#'
plot_expectation <- function(model) {
EA <- as.matrix(expectation(model))
if (is.null(rownames(EA))) {
rownames(EA) <- 1:nrow(EA)
}
if (is.null(colnames(EA))) {
colnames(EA) <- 1:ncol(EA)
}
plot_dense_matrix(EA)
}

Expand Down

0 comments on commit 21ea711

Please sign in to comment.