-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,720 additions
and
1,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: eheat | ||
Title: Extented ComplexHeatmap | ||
Title: Extended ComplexHeatmap | ||
Version: 0.99.0 | ||
Authors@R: | ||
person("Yun", "Peng", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2801-3332")) | ||
|
@@ -26,10 +26,11 @@ Suggests: | |
knitr, | ||
rmarkdown | ||
Collate: | ||
'anno-.R' | ||
'anno-gg.R' | ||
'anno-subsettable-.R' | ||
'draw-methods.R' | ||
'eanno.R' | ||
'eheat-package.R' | ||
'eheat.R' | ||
'ggheat.R' | ||
'gganno.R' | ||
'ggfit.R' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#' Draw methods for additional objects | ||
#' | ||
#' @description Only object with [make_legends] methods can be put in | ||
#' `legends_margin`. Only object with [draw][draw-method] methods can be put in | ||
#' `legends_panel`. | ||
#' | ||
#' @param object See method signature | ||
#' @param ... Additional argumentds passed on to specific methods. | ||
#' @examples | ||
#' draw(eheat(matrix(rnorm(81), nrow = 9))) | ||
#' @importFrom ComplexHeatmap draw | ||
#' @export | ||
#' @name draw-method | ||
ComplexHeatmap::draw | ||
|
||
methods::setOldClass(c("gtable", "ggplot")) | ||
|
||
#' @export | ||
#' @rdname draw-method | ||
methods::setMethod("draw", "gtable", function(object) grid::grid.draw(object)) | ||
|
||
#' @export | ||
#' @rdname draw-method | ||
methods::setMethod("draw", "ggplot", function(object) { | ||
object <- ggplot2::ggplotGrob(object) | ||
methods::callGeneric() | ||
}) |
Oops, something went wrong.