Skip to content

Commit

Permalink
Size of asterisks in pathway plots now scales based on triangle size.
Browse files Browse the repository at this point in the history
  • Loading branch information
travis-m-blimkie committed May 23, 2024
1 parent 48d7203 commit 1f9b751
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: pathlinkR
Type: Package
Title: Analyze and interpret RNA-Seq results
Version: 1.1.6
Version: 1.1.7
Authors@R: c(
person("Travis", "Blimkie", , "travis.m.blimkie@gmail.com", role = c("cre"), comment = c(ORCID = "0000-0001-8778-8627")),
person("Andy", "An", , "andy@hancocklab.com", role = c("aut"))
Expand Down
11 changes: 8 additions & 3 deletions R/pathwayPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,13 @@ pathwayPlots <- function(
space="free"
) +

{if (includeGeneRatio) geom_point(aes(size=geneRatio))} +
{if (!includeGeneRatio) geom_point(size=size)} +
{
if (includeGeneRatio) {
geom_point(aes(size=geneRatio))
} else {
geom_point(size=size)
}
} +

geom_point(
data=filter(
Expand All @@ -247,7 +252,7 @@ pathwayPlots <- function(
),
mapping=aes(x=comparison, y=pathwayName),
shape=8,
size=2,
size=ifelse(size - 3 > 0, size - 3, 1),
colour="white",
show.legend=FALSE
) +
Expand Down

0 comments on commit 1f9b751

Please sign in to comment.