Skip to content

Commit

Permalink
scale pie nodes, #301
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Nov 29, 2024
1 parent 42704f8 commit f991a0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: enrichplot
Title: Visualization of Functional Enrichment Result
Version: 1.27.1.005
Version: 1.27.1.006
Authors@R: c(
person(given = "Guangchuang", family = "Yu", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6485-8781")),
person(given = "Chun-Hui", family = "Gao", email = "[email protected]", role = "ctb", comment = c(ORCID = "0000-0002-1445-7939")))
Expand Down
6 changes: 2 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# enrichplot 1.27.1.005
# enrichplot 1.27.1.006

+ `emapplot()` now allows passing color to a specific color, e.g., color = "black" (2024-11-29, Fri, #300)
+ bug fixed in `emapplot()`
- `size_category` now works for pie node (2024-11-29, Fri, #301)
- legend of term nodes will be retained when `group = TRUE` (2024-11-29, Fri, #300)

# enrichplot 1.27.1.004

+ supports passing ID to 'showCategory' in `ridgeplot()` (2024-11-06, Wed, #295)
+ enhancement of `cnetplot()` (2024-11-06, Wed)
- 'node_label' can be a vector of selected items/genes to specify the items to be displayed (#293)
Expand Down
2 changes: 1 addition & 1 deletion R/emapplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ emapplot_internal <- function(
p <- ggplot(g, layout = layout) + geom_edge(color = color_edge, size = size_edge)

if (inherits(x, 'compareClusterResult')) {
p <- add_node_pie(p, gg$data, pie)
p <- add_node_pie(p, gg$data, pie, pie_scale=size_category)
} else {
if (color %in% names(as.data.frame(x))) {
p <- p %<+% x[, c("Description", color)] +
Expand Down

0 comments on commit f991a0f

Please sign in to comment.