Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Nov 15, 2024
1 parent b03634d commit 153f2d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
16 changes: 2 additions & 14 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,6 @@ my_sideplot <- ggside(mpg, aes(displ, hwy, colour = class)) -
my_sideplot
```

Multiple heatmaps can be stacked together:
```{r fig.height=8}
stack_alignv() +
my_heatplot +
my_heatplot
```

Similarly, multiple marginal plots can be stacked together:
```{r fig.height=8}
stack_freev(sizes = c(1, 1, 0.3)) +
my_sideplot +
my_sideplot
```

## Compare with other ggplot2 heatmap extension
`ggalign` offers advantages over extensions like
[ggheatmap](https://github.com/XiaoLuo-boy/ggheatmap) by providing full
Expand Down Expand Up @@ -184,3 +170,5 @@ Here are some more advanced visualizations using `ggalign`:
`r sprintf("![](%s/articles/more-examples_files/figure-html/unnamed-chunk-3-1.png)", url)`

`r sprintf("![](%s/articles/more-examples_files/figure-html/unnamed-chunk-2-1.png)", url)`

`r sprintf("![](%s/articles/articles/oncoplot_files/figure-html/unnamed-chunk-19-1.png)", url)`
28 changes: 4 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,6 @@ my_sideplot

<img src="man/figures/README-unnamed-chunk-7-1.png" width="100%" />

Multiple heatmaps can be stacked together:

``` r
stack_alignv() +
my_heatplot +
my_heatplot
#> → heatmap built with `geom_tile()`
#> → heatmap built with `geom_tile()`
```

<img src="man/figures/README-unnamed-chunk-8-1.png" width="100%" />

Similarly, multiple marginal plots can be stacked together:

``` r
stack_freev(sizes = c(1, 1, 0.3)) +
my_sideplot +
my_sideplot
```

<img src="man/figures/README-unnamed-chunk-9-1.png" width="100%" />

## Compare with other ggplot2 heatmap extension

`ggalign` offers advantages over extensions like
Expand Down Expand Up @@ -198,6 +176,8 @@ annotation function in

Here are some more advanced visualizations using `ggalign`:

![](https://yunuuuu.github.io/ggalign/articles/more-examples_files/figure-html/unnamed-chunk-3-1.png)
![](https://yunuuuu.github.io/ggalign/dev/articles/more-examples_files/figure-html/unnamed-chunk-3-1.png)

![](https://yunuuuu.github.io/ggalign/dev/articles/more-examples_files/figure-html/unnamed-chunk-2-1.png)

![](https://yunuuuu.github.io/ggalign/articles/more-examples_files/figure-html/unnamed-chunk-2-1.png)
![](https://yunuuuu.github.io/ggalign/dev/articles/articles/oncoplot_files/figure-html/unnamed-chunk-19-1.png)

0 comments on commit 153f2d4

Please sign in to comment.