Skip to content

Commit

Permalink
updat docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jokergoo committed Apr 13, 2020
1 parent 7e84d7a commit 175d97c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: ComplexHeatmap
Type: Package
Title: Make Complex Heatmaps
Version: 2.3.4
Date: 2020-04-03
Date: 2020-04-13
Author: Zuguang Gu
Maintainer: Zuguang Gu <[email protected]>
Depends: R (>= 3.1.2), methods, grid, graphics, stats, grDevices
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CHANGES in VERSION 2.3.4
* add `alter_graphic()` to automatically generate alteration graphic functions.
* add `label`/`annotation_label` argument in `SingleAnnotation()` and `HeatmapAnnotation()`.
* improved the subsetting methods for `comb_mat` class
* rewrite `smartAlign2()`

========================

Expand Down
3 changes: 2 additions & 1 deletion man/anno_zoom.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ anno_zoom(align_to, panel_fun = function(index, nm = NULL) { grid.rect() },
which = c("column", "row"), side = ifelse(which == "column", "top", "right"),
size = NULL, gap = unit(1, "mm"),
link_width = unit(5, "mm"), link_height = link_width, link_gp = gpar(),
extend = unit(0, "mm"), width = NULL, height = NULL)
extend = unit(0, "mm"), width = NULL, height = NULL, internal_line = TRUE)
}
\arguments{

Expand All @@ -27,6 +27,7 @@ anno_zoom(align_to, panel_fun = function(index, nm = NULL) { grid.rect() },
\item{extend}{By default, the region for the labels has the same width (if it is a column annotation) or same height (if it is a row annotation) as the heatmap. The size can be extended by this options. The value can be a proportion number or a \code{\link[grid]{unit}} object. The length can be either one or two.}
\item{width}{Width of the annotation. The value should be an absolute unit. Width is not allowed to be set for column annotation.}
\item{height}{Height of the annotation. The value should be an absolute unit. Height is not allowed to be set for row annotation.}
\item{internal_line}{Internally used.}

}
\details{
Expand Down
4 changes: 4 additions & 0 deletions tests/test-AnnotationFunction.R
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ panel_fun = function(index, nm) {
anno = anno_zoom(align_to = fa, which = "row", panel_fun = panel_fun)
draw(anno, index = 1:100, test = "anno_zoom")

anno = anno_zoom(align_to = list(a = which(fa == "a")), which = "row", panel_fun = panel_fun)
draw(anno, index = 1:100, test = "anno_zoom")


panel_fun = function(index, nm) {
grid.rect(gp = gpar(fill = "grey", col = NA))
grid.text(nm)
Expand Down

0 comments on commit 175d97c

Please sign in to comment.