From ad3882494ba42701a2e2f6987f8371f94c308096 Mon Sep 17 00:00:00 2001
From: yun
Date: Sat, 22 Jun 2024 19:28:55 +0800
Subject: [PATCH] update Docs
---
README.html | 49 +++++++++++-------
README.md | 31 +++++++----
man/figures/README-anno_gg2-full-1.png | Bin 31450 -> 24728 bytes
man/figures/README-anno_gg2-panel1-1.png | Bin 23177 -> 19175 bytes
man/figures/README-anno_gg2-panel2-1.png | Bin 25225 -> 21266 bytes
man/figures/README-anno_gg2-panel3-1.png | Bin 25544 -> 25753 bytes
man/figures/README-anno_gg2-plot-1.png | Bin 27676 -> 28479 bytes
vignettes/eheat.Rmd | 27 +++++++---
.../figure-html/Heatmap_arg1-1.png | Bin 0 -> 21088 bytes
.../figure-html/Heatmap_arg2-1.png | Bin 0 -> 21302 bytes
.../figure-html/Heatmap_arg3-1.png | Bin 0 -> 42336 bytes
.../figure-html/Heatmap_arg4-1.png | Bin 0 -> 22821 bytes
.../figure-html/Heatmap_gganno-1.png | Bin 0 -> 23973 bytes
.../eheat_files/figure-html/anno_bar-1.png | Bin 0 -> 12038 bytes
.../eheat_files/figure-html/anno_box-1.png | Bin 0 -> 16281 bytes
.../figure-html/anno_gg-panel-1.png | Bin 0 -> 29550 bytes
.../figure-html/anno_gg-panel-clip-1.png | Bin 0 -> 18984 bytes
.../figure-html/anno_gg-plot-1.png | Bin 0 -> 28463 bytes
.../figure-html/anno_gg-plot-2.png | Bin 0 -> 25718 bytes
.../figure-html/anno_gg2-panel1-1.png | Bin 0 -> 19175 bytes
.../figure-html/anno_gg2-panel2-1.png | Bin 0 -> 21266 bytes
.../figure-html/anno_gg2-panel3-1.png | Bin 0 -> 25753 bytes
.../figure-html/anno_gg2-plot-1.png | Bin 0 -> 28479 bytes
.../eheat_files/figure-html/anno_point-1.png | Bin 0 -> 23998 bytes
.../eheat_files/figure-html/anno_violin-1.png | Bin 0 -> 18346 bytes
.../eheat_files/figure-html/blank_rect-1.png | Bin 0 -> 19437 bytes
.../eheat_files/figure-html/ggheat-1.png | Bin 0 -> 18647 bytes
.../figure-html/ggheat_background-1.png | Bin 0 -> 45419 bytes
.../figure-html/ggheat_customize_rect-1.png | Bin 0 -> 37061 bytes
.../eheat_files/figure-html/ggheat_geom-1.png | Bin 0 -> 42760 bytes
.../figure-html/ggheat_legend-1.png | Bin 0 -> 12900 bytes
.../figure-html/ggheat_legend_name1-1.png | Bin 0 -> 19570 bytes
.../figure-html/ggheat_legend_name2-1.png | Bin 0 -> 19998 bytes
.../figure-html/ggheat_rownames-1.png | Bin 0 -> 20266 bytes
.../figure-html/ggheat_scale1-1.png | Bin 0 -> 18926 bytes
.../figure-html/ggheat_scale2-1.png | Bin 0 -> 19072 bytes
.../figure-html/unnamed-chunk-3-1.png | Bin 0 -> 28399 bytes
37 files changed, 70 insertions(+), 37 deletions(-)
create mode 100644 vignettes/eheat_files/figure-html/Heatmap_arg1-1.png
create mode 100644 vignettes/eheat_files/figure-html/Heatmap_arg2-1.png
create mode 100644 vignettes/eheat_files/figure-html/Heatmap_arg3-1.png
create mode 100644 vignettes/eheat_files/figure-html/Heatmap_arg4-1.png
create mode 100644 vignettes/eheat_files/figure-html/Heatmap_gganno-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_bar-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_box-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg-panel-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg-panel-clip-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg-plot-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg-plot-2.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg2-panel1-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg2-panel2-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg2-panel3-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_gg2-plot-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_point-1.png
create mode 100644 vignettes/eheat_files/figure-html/anno_violin-1.png
create mode 100644 vignettes/eheat_files/figure-html/blank_rect-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_background-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_customize_rect-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_geom-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_legend-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_legend_name1-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_legend_name2-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_rownames-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_scale1-1.png
create mode 100644 vignettes/eheat_files/figure-html/ggheat_scale2-1.png
create mode 100644 vignettes/eheat_files/figure-html/unnamed-chunk-3-1.png
diff --git a/README.html b/README.html
index cdf900b..bf46933 100644
--- a/README.html
+++ b/README.html
@@ -605,8 +605,8 @@
eheat
@@ -701,7 +701,7 @@ Installation
ComplexHeatmap is the ease of plotting statistical annotations. Another
benefit is that the legends can be internally extracted from the ggplot2
plot, eliminating the need for manual addition of legends.
-ggheat
+ggheat
Using ggheat
, it is effortless to create a simple
Heatmap. The default color mapping was not consistent between
ComplexHeatmap and ggplot2.
@@ -877,7 +877,7 @@ ggheat
)
-gganno
+gganno
The same with ggheat
, the essential parameter of
gganno
is also the ggfn
, which accepts a
ggplot2 object equipped with a default data and mappings established by
@@ -1117,58 +1117,69 @@
anno_gg
and
top_annotation = HeatmapAnnotation(
ggplot = anno_gg2(g, "panel",
margins = NULL,
- height = unit(6, "cm"),
+ height = unit(3, "cm"),
show_name = FALSE
)
)
)
-
+
# anno_gg2-panel: margins = "l" --------
ggheat(m,
top_annotation = HeatmapAnnotation(
ggplot = anno_gg2(g, "panel",
margins = "l",
- height = unit(6, "cm"),
+ height = unit(3, "cm"),
show_name = FALSE
)
)
)
-
+
# anno_gg2-panel: margins = "r" --------
ggheat(m,
top_annotation = HeatmapAnnotation(
ggplot = anno_gg2(g, "panel",
margins = "r",
- height = unit(6, "cm"),
+ height = unit(3, "cm"),
show_name = FALSE
)
)
)
-
+
# anno_gg2-plot ---------------------
ggheat(m,
top_annotation = HeatmapAnnotation(
ggplot = anno_gg2(g, "plot",
- height = unit(6, "cm"),
+ height = unit(3, "cm"),
show_name = FALSE
)
)
)
-
+
# anno_gg2-full --------------------
ggheat(m,
top_annotation = HeatmapAnnotation(
- ggplot = anno_gg2(g, "full",
- height = unit(6, "cm"),
- show_name = FALSE
- )
- )
-)
-
+ ggplot = anno_gg2(
+ g + guides(colour = guide_legend(
+ theme = theme(
+ legend.key.size = unit(1, "mm"),
+ legend.text = element_text(size = 10),
+ legend.key.spacing = unit(0, "mm"),
+ legend.title.position = "bottom",
+ legend.key = element_blank()
+ ),
+ ncol = 2L
+ )),
+ align_with = "full",
+ height = unit(3, "cm"),
+ show_name = FALSE
+ )
+ )
+)
+