Skip to content

Commit 9ca6a8a

Browse files
Added argument to pathnetGGraph to specify node size in legend.
1 parent f3aca6c commit 9ca6a8a

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: pathlinkR
22
Type: Package
33
Title: Analyze and interpret RNA-Seq results
4-
Version: 1.5.1
4+
Version: 1.5.2
55
Authors@R: c(
66
person("Travis", "Blimkie", email = "travis.m.blimkie@gmail.com", role = "cre", comment = c(ORCID = "0000-0001-8778-8627")),
77
person("Andy", "An", email = "andy@hancocklab.com", role = "aut")

R/pathnetGGraph.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#' to "nicely", but supports any method found in `?layout_tbl_graph_igraph`
66
#' @param nodeSizeRange Size range for nodes, mapped to significance (Bonferroni
77
#' p-value). Defaults to `c(4, 8)`.
8+
#' @param nodeSizeLegend Shape size in the legend for Pathway Type. Defaults to
9+
#' `5`.
810
#' @param nodeBorderWidth Width of borders on nodes, defaults to 1.5
911
#' @param nodeLabelSize Size of node labels; defaults to 5.
1012
#' @param nodeLabelColour Colour of the node labels; defaults to "black".
@@ -93,6 +95,7 @@ pathnetGGraph <- function(
9395
network,
9496
networkLayout="nicely",
9597
nodeSizeRange=c(4, 8),
98+
nodeSizeLegend=5,
9699
nodeBorderWidth=1.5,
97100
nodeLabelSize=5,
98101
nodeLabelColour="black",
@@ -222,7 +225,7 @@ pathnetGGraph <- function(
222225
plot.margin=unit(rep(5, 4), "mm")
223226
) +
224227
guides(
225-
colour=guide_legend(override.aes=list(size=5, pch=19)),
228+
colour=guide_legend(override.aes=list(size=nodeSizeLegend, pch=19)),
226229
size=guide_legend(override.aes=list(
227230
colour="black",
228231
fill="white",

man/pathnetGGraph.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)