Skip to content

Commit 69c57ac

Browse files
committed
update README
1 parent da76666 commit 69c57ac

File tree

5 files changed

+489
-113
lines changed

5 files changed

+489
-113
lines changed

README.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tidyHeatmap
66
[![Lifecycle:maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html)
77
[![DOI](https://joss.theoj.org/papers/10.21105/joss.02472/status.svg)](https://doi.org/10.21105/joss.02472)
88
<!-- badges: end -->
9-
9+
1010
## Citation
1111

1212
Mangiola et al., (2020). tidyHeatmap: an R package for modular heatmap
@@ -47,10 +47,10 @@ as graphical engine.
4747
| Function | Description |
4848
|---------------------|-----------------------------------------------------------------------------|
4949
| `heatmap` | Plots base heatmap |
50-
| `add_tile` | Adds tile annotation to the heatmap |
51-
| `add_point` | Adds point annotation to the heatmap |
52-
| `add_bar` | Adds bar annotation to the heatmap |
53-
| `add_line` | Adds line annotation to the heatmap |
50+
| `annotation_tile` | Adds tile annotation to the heatmap |
51+
| `annotation_point` | Adds point annotation to the heatmap |
52+
| `annotation_bar` | Adds bar annotation to the heatmap |
53+
| `annotation_line` | Adds line annotation to the heatmap |
5454
| `layer_point` | Adds layer of symbols on top of the heatmap |
5555
| `layer_square` | Adds layer of symbols on top of the heatmap |
5656
| `layer_diamond` | Adds layer of symbols on top of the heatmap |
@@ -141,7 +141,7 @@ mtcars
141141
mtcars_heatmap <-
142142
mtcars_tidy |>
143143
heatmap(`Car name`, Property, Value, scale = "row" ) |>
144-
add_tile(hp)
144+
annotation_tile(hp)
145145

146146
mtcars_heatmap
147147
```
@@ -169,7 +169,7 @@ mtcars_tidy_groupings =
169169
mtcars_tidy_groupings |>
170170
group_by(vs, property_group) |>
171171
heatmap(`Car name`, Property, Value, scale = "row" ) |>
172-
add_tile(hp)
172+
annotation_tile(hp)
173173
```
174174

175175
![](man/fragments/figures/unnamed-chunk-9-1.png)<!-- -->
@@ -191,7 +191,7 @@ mtcars_tidy_groupings |>
191191
c("#b58b4c", "#74a6aa")
192192
)
193193
) |>
194-
add_tile(hp)
194+
annotation_tile(hp)
195195
```
196196

197197
![](man/fragments/figures/unnamed-chunk-10-1.png)<!-- -->
@@ -289,6 +289,11 @@ mtcars_tidy |>
289289
)
290290
```
291291

292+
## Warning: `add_tile()` was deprecated in tidyHeatmap 1.9.0.
293+
## Please use `annotation_tile()` instead
294+
## This warning is displayed once every 8 hours.
295+
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
296+
292297
![](man/fragments/figures/unnamed-chunk-16-1.png)<!-- -->
293298

294299
We can use grid::colorRamp2 function for tile annotation for specific
@@ -302,7 +307,7 @@ mtcars_tidy |>
302307
Value,
303308
scale = "row"
304309
) |>
305-
add_tile(
310+
annotation_tile(
306311
hp,
307312
palette = circlize::colorRamp2(c(0, 100, 200, 300), viridis::magma(4))
308313
)
@@ -321,8 +326,8 @@ tidyHeatmap::pasilla |>
321326
.value = `count normalised adjusted`,
322327
scale = "row"
323328
) |>
324-
add_tile(condition) |>
325-
add_tile(activation)
329+
annotation_tile(condition) |>
330+
annotation_tile(activation)
326331
```
327332

328333
![](man/fragments/figures/unnamed-chunk-18-1.png)<!-- -->
@@ -340,8 +345,8 @@ tidyHeatmap::pasilla |>
340345
scale = "row",
341346
show_heatmap_legend = FALSE
342347
) |>
343-
add_tile(condition, show_legend = FALSE) |>
344-
add_tile(activation, show_legend = FALSE)
348+
annotation_tile(condition, show_legend = FALSE) |>
349+
annotation_tile(activation, show_legend = FALSE)
345350
```
346351

347352
![](man/fragments/figures/unnamed-chunk-19-1.png)<!-- -->
@@ -368,11 +373,11 @@ pasilla_plus |>
368373
.value = `count normalised adjusted`,
369374
scale = "row"
370375
) |>
371-
add_tile(condition) |>
372-
add_point(activation) |>
373-
add_tile(act) |>
374-
add_bar(size) |>
375-
add_line(age)
376+
annotation_tile(condition) |>
377+
annotation_point(activation) |>
378+
annotation_tile(act) |>
379+
annotation_bar(size) |>
380+
annotation_line(age)
376381
```
377382

378383
![](man/fragments/figures/unnamed-chunk-20-1.png)<!-- -->
@@ -390,11 +395,11 @@ pasilla_plus |>
390395
.value = `count normalised adjusted`,
391396
scale = "row"
392397
) |>
393-
add_tile(condition, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
394-
add_point(activation, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
395-
add_tile(act, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
396-
add_bar(size, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
397-
add_line(age, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8))
398+
annotation_tile(condition, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
399+
annotation_point(activation, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
400+
annotation_tile(act, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
401+
annotation_bar(size, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8)) |>
402+
annotation_line(age, size = unit(0.3, "cm"), annotation_name_gp= gpar(fontsize = 8))
398403
```
399404

400405
![](man/fragments/figures/unnamed-chunk-21-1.png)<!-- -->
155 Bytes
Loading
25 Bytes
Loading

man/fragments/intro.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Function | Description
4141
`save_pdf` | Saves the PDF of the heatmap
4242
`+` | Integrate heatmaps side-by-side
4343
`as_ComplexHeatmap` | Convert the tidyHeatmap output to ComplexHeatmap for non-standard "drawing"
44+
`group_by` | Applied to the input dataset, groups heatpmap rows/columns
4445

4546
## Installation
4647

man/fragments/intro.html

Lines changed: 460 additions & 90 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)