Skip to content

Commit

Permalink
Small but helpful adjustment to the geom_col() settings in structure_…
Browse files Browse the repository at this point in the history
…plot_ggplot_call().
  • Loading branch information
pcarbo committed Jan 29, 2025
1 parent 79144c8 commit 9283dd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Encoding: UTF-8
Type: Package
Package: fastTopics
Version: 0.7-06
Version: 0.7-07
Date: 2024-01-29
Title: Fast Algorithms for Fitting Topic Models and Non-Negative
Matrix Factorizations to Count Data
Expand Down
2 changes: 1 addition & 1 deletion R/fit_poisson_nmf.R
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ fit_poisson_nmf <- function (X, k, fit0, numiter = 100,
cat(sprintf("Running at most %d %s updates, %s extrapolation ",
numiter,method.text,
ifelse(control$extrapolate,"with","without")))
cat("(fastTopics 0.7-6).\n")
cat("(fastTopics 0.7-7).\n")
}

# INITIALIZE ESTIMATES
Expand Down
2 changes: 1 addition & 1 deletion R/structure_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ plot.multinom_topic_model_fit <- function (x, ...)
structure_plot_ggplot_call <- function (dat, colors, ticks = NULL,
font.size = 9, linewidth = 0)
ggplot(dat,aes_string(x = "sample",y = "prop",fill = "topic")) +
geom_col(linewidth = linewidth) +
geom_col(linewidth = linewidth,width = 1) +
scale_x_continuous(limits = c(0,max(dat$sample) + 1),breaks = ticks,
labels = names(ticks)) +
scale_fill_manual(values = colors) +
Expand Down

0 comments on commit 9283dd3

Please sign in to comment.