Skip to content

Commit 8233a2f

Browse files
committed
revert commit
1 parent 6b8d8d4 commit 8233a2f

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method("+",InputHeatmap)
4-
S3method("+",tidyHeatmap_additive)
54
export(add_bar)
65
export(add_line)
76
export(add_point)

R/methods.R

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,6 @@ setMethod("show", "InputHeatmap", function(object){
198198
show()
199199
})
200200

201-
# == title
202-
# Class for Concatenating Heatmaps and Annotations
203-
#
204-
# == detail
205-
# This class is a super class for `Heatmap-class`, `HeatmapList-class` and
206-
# `HeatmapAnnotation-class` classes. It is only designed for ``+`` generic
207-
# method and the ``\%v\%v`` method so that above three classes can be appended to each other.
208-
#
209-
tidyHeatmap_additive = setClass("tidyHeatmap_additive")
210-
211-
setClass(
212-
"tidyHeatmap_additive",
213-
contains = "HeatmapList"
214-
)
215201

216202
#' @rdname plot_arithmetic
217203
#'
@@ -224,30 +210,8 @@ setClass(
224210
#' @source [Mangiola and Papenfuss., 2020](https://joss.theoj.org/papers/10.21105/joss.02472)
225211
"+.InputHeatmap" <- function(e1, e2) {
226212

227-
p = add_heatmap(as_ComplexHeatmap(e1), as_ComplexHeatmap(e2))
228-
229-
p = as(p, "tidyHeatmap_additive")
230-
231-
p
232-
233-
}
234-
235-
213+
add_heatmap(as_ComplexHeatmap(e1), as_ComplexHeatmap(e2))
236214

237-
238-
#' @rdname plot_arithmetic next
239-
#'
240-
#' @importFrom ComplexHeatmap add_heatmap
241-
#'
242-
#' @export
243-
#' @references Mangiola, S. and Papenfuss, A.T., 2020. "tidyHeatmap: an R package for
244-
#' modular heatmap production based on tidy principles." Journal of Open Source Software.
245-
#' doi:10.21105/joss.02472.
246-
#' @source [Mangiola and Papenfuss., 2020](https://joss.theoj.org/papers/10.21105/joss.02472)
247-
"+.tidyHeatmap_additive" <- function(e1, e2) {
248-
249-
add_heatmap(e1, as_ComplexHeatmap(e2))
250-
251215
}
252216

253217
#' Creates a `InputHeatmap` object from `tbl_df` on evaluation creates a `ComplexHeatmap`

0 commit comments

Comments
 (0)