Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Aug 3, 2024
1 parent 5194640 commit d4e1932
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vignettes/Single-Heatmap-Colors.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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") +
Expand All @@ -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) +
Expand Down

0 comments on commit d4e1932

Please sign in to comment.