@@ -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