From d4e1932f78ac42dcae0a83b8d0b1c64ca1e6b4d9 Mon Sep 17 00:00:00 2001 From: yun Date: Sat, 3 Aug 2024 15:04:27 +0800 Subject: [PATCH] Docs --- vignettes/Single-Heatmap-Colors.Rmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vignettes/Single-Heatmap-Colors.Rmd b/vignettes/Single-Heatmap-Colors.Rmd index 35133668..eaf7ac8d 100644 --- a/vignettes/Single-Heatmap-Colors.Rmd +++ b/vignettes/Single-Heatmap-Colors.Rmd @@ -193,8 +193,12 @@ ggheatmap(mat_with_na) + theme(plot.margin = margin()) ``` -We won't compare the LAB and RGB space. +We won't compare the LAB and RGB space. If you want to convert color between +different color space, try to use (farver)[https://farver.data-imaginist.com/] +pacakge. +Heatmap border, in ggplot2, you can use `panel.border` argument in `theme()` +function to control the border. ```{r} ggheatmap(mat) + scale_fill_gradient2(low = "#2600D1FF", high = "#EE3F3FFF") + @@ -206,6 +210,8 @@ ggheatmap(mat) + theme(plot.margin = margin()) ``` +Heatmap cell border, we just decrease the cell width and height. You can also +use color aesthetic to specify the cell border color. ```{r} ggheatmap(mat, filling = FALSE) + geom_tile(aes(fill = value), width = 0.95, height = 0.95) +