Skip to content

Commit

Permalink
Fixed a couple minor bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarbo committed Apr 30, 2024
1 parent ece4660 commit b5ea9c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: flashier
Type: Package
Date: 2024-04-30
Title: Empirical Bayes Matrix Factorization
Version: 1.0.42
Version: 1.0.43
Authors@R: c(person("Jason", "Willwerscheid", role = c("aut", "cre"),
email = "[email protected]"),
person("Peter", "Carbonetto", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ NULL
#'
#' @examples
#' fl <- flash(gtex, greedy_Kmax = 4)
#' plot(fl, incl_scree = FALSE, pm_colors = gtex_colors)
#' plot(fl, pm_colors = gtex_colors)
NULL
3 changes: 2 additions & 1 deletion R/flash_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ flash_plot_heatmap <- function(fl,
struct_ticks <- struct_p$plot_env$ticks + 0.5

# Topics get reversed by plot_structure; re-reverse them:
struct_df$topic <- factor(struct_df$topic, level = rev(levels(struct_df$topic)))
struct_df$topic <- factor(struct_df$topic,
levels = rev(levels(struct_df$topic)))

p <- ggplot(struct_df, aes(x = topic, y = sample, fill = prop)) +
geom_tile(width = 0.8, height = 1) +
Expand Down
2 changes: 1 addition & 1 deletion man/gtex_colors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5ea9c3

Please sign in to comment.