Skip to content

Commit

Permalink
Merge branch 'RoheLab:main' into ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 5, 2024
2 parents ef6224d + 21ea711 commit 31adb18
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 31adb18

Please sign in to comment.