Skip to content

Commit

Permalink
Fixed a bug in heatMapPAM
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyuac committed Aug 8, 2022
1 parent 07c13cb commit e808430
Show file tree
Hide file tree
Showing 36 changed files with 438 additions and 141 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: GeneMates
Type: Package
Title: Analysing association and physical linkage between bacterial genes
Version: 0.2.2
Version: 0.2.3
Author: Yu Wan
Maintainer: Yu Wan <[email protected]>
Description: Applies univariate linear mixed models (LMMs) to bacterial genotype
Expand All @@ -24,4 +24,4 @@ Imports:
networkDynamic (>= 0.9.0),
vegan (>= 2.4-4),
reshape2 (>= 1.4)
RoxygenNote: 6.1.1
RoxygenNote: 7.2.0
11 changes: 6 additions & 5 deletions R/func__visualisation__heatMapPAM.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#' @export
#' @author Guangchuang Yu, Yu Wan (\email{wanyuac@@126.com})
#
# First edition of this function: 5 Sep 2018; the latest edition: 28 Aug 2019
# First edition of this function: 5 Sep 2018; the latest edition: 8 Aug 2022
# Licence: Artistic License 2.0 (follow the licence of the package ggtree)

heatMapPAM <- function(p, data, col_colours = "black", null_colour = "grey90",
Expand Down Expand Up @@ -213,10 +213,11 @@ heatMapPAM <- function(p, data, col_colours = "black", null_colour = "grey90",
# scale_fill_manual sets tile colours; scale_colour_manual sets label colours
p2 <- p2 + scale_fill_manual(name = "Class",
breaks = c("0", as.character(colour_codes)),
values = colours_uniq, na.value = NA) +
scale_colour_manual(name = "Class",
breaks = c("0", as.character(colour_codes)),
values = colours_uniq, na.value = NA)
values = colours_uniq, na.value = NA)
# Bug identified (8/8/2022): loss of tip labels after scalling colours
# + scale_colour_manual(name = "Class",
# breaks = c("0", as.character(colour_codes)),
# values = colours_uniq, na.value = NA)
} else {
p2 <- p2 + scale_fill_manual(name = "Class", breaks = c("1", "0"),
values = c("1" = col_colours, "0" = null_colour),
Expand Down
8 changes: 6 additions & 2 deletions man/allelicCoMatrix.Rd

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

3 changes: 1 addition & 2 deletions man/betaSignCongruence.Rd

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

10 changes: 8 additions & 2 deletions man/calcAllelicDiveristyPerCountry.Rd

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

39 changes: 28 additions & 11 deletions man/comparePvalues.Rd

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

8 changes: 6 additions & 2 deletions man/corCladeProj.Rd

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

10 changes: 8 additions & 2 deletions man/countAllelesPerCountry.Rd

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

11 changes: 9 additions & 2 deletions man/countAllelesPerYear.Rd

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

32 changes: 25 additions & 7 deletions man/drawHeatMap.Rd

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

10 changes: 8 additions & 2 deletions man/evalPL.Rd

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

10 changes: 8 additions & 2 deletions man/findMinIncClade.Rd

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

3 changes: 1 addition & 2 deletions man/findMinIncCladeOfStrains.Rd

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

47 changes: 36 additions & 11 deletions man/findPhysLink.Rd

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

12 changes: 9 additions & 3 deletions man/findSeq.Rd

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

13 changes: 10 additions & 3 deletions man/getClusterMemberCooccurrence.Rd

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

34 changes: 25 additions & 9 deletions man/heatMapPAM.Rd

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

Loading

0 comments on commit e808430

Please sign in to comment.