Skip to content

Commit

Permalink
better display
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jul 16, 2024
1 parent d03a7cd commit 8054775
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 24 deletions.
7 changes: 6 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ for function call foramt).

```{r}
ggheat(small_mat) +
scale_fill_viridis_c(guide = "none") +
htanno_dendro(aes(color = branch), position = "top", k = 3) +
gganno(data = rowSums) +
geom_bar(aes(y = value, fill = .panel), stat = "identity") +
Expand All @@ -257,6 +258,7 @@ ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
```

Expand All @@ -265,13 +267,14 @@ For convenient, we also provide `gganno_*` function for 4 positions.
ggheat(small_mat) +
gganno_top(aes(y = value), data = rowSums) +
geom_bar(stat = "identity", aes(fill = factor(.panel))) +
scale_fill_brewer(name = NULL, palette = "Dark2") +
scale_fill_brewer(name = NULL, palette = "Dark2", guide = "none") +
gganno_left(aes(x = value), data = rowSums) +
geom_bar(
aes(y = .y, fill = factor(.y)),
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1") +
scale_x_reverse()
```

Expand Down Expand Up @@ -302,6 +305,7 @@ ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
```

Expand Down Expand Up @@ -335,6 +339,7 @@ pp <- ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
pp
```
Expand Down
49 changes: 27 additions & 22 deletions README.html

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ and `deactivate` for function call foramt).

``` r
ggheat(small_mat) +
scale_fill_viridis_c(guide = "none") +
htanno_dendro(aes(color = branch), position = "top", k = 3) +
gganno(data = rowSums) +
geom_bar(aes(y = value, fill = .panel), stat = "identity") +
Expand All @@ -289,6 +290,7 @@ ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
```

Expand All @@ -300,13 +302,14 @@ For convenient, we also provide `gganno_*` function for 4 positions.
ggheat(small_mat) +
gganno_top(aes(y = value), data = rowSums) +
geom_bar(stat = "identity", aes(fill = factor(.panel))) +
scale_fill_brewer(name = NULL, palette = "Dark2") +
scale_fill_brewer(name = NULL, palette = "Dark2", guide = "none") +
gganno_left(aes(x = value), data = rowSums) +
geom_bar(
aes(y = .y, fill = factor(.y)),
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1") +
scale_x_reverse()
```

Expand Down Expand Up @@ -343,6 +346,7 @@ ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
```

Expand Down Expand Up @@ -383,6 +387,7 @@ pp <- ggheat(small_mat) +
stat = "identity",
orientation = "y"
) +
scale_fill_brewer(palette = "Set1", guide = "none") +
scale_x_reverse()
pp
```
Expand Down
Binary file modified man/figures/README-unnamed-chunk-16-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-17-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-19-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-21-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8054775

Please sign in to comment.