Skip to content

Commit

Permalink
Reduce the number of images...
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 11, 2024
1 parent eafd138 commit 0366594
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
8 changes: 1 addition & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@ We can achieve similar results with the `ggplot2` function.
#| results: 'markup'
# Graphic of matrix data structure using base R graphics
gdraw_matrix(mat_3x5)
# Disable showing the cell indices
gdraw_matrix(mat_3x5, show_cell_indices = FALSE)
# Show row and column indices
gdraw_matrix(
mat_3x5,
show_row_indices = TRUE, show_column_indices = TRUE,
show_cell_indices = FALSE)
# Highlight cells over a specific value
gdraw_matrix(mat_3x5, highlight_cells = mat_3x5 > 4)
```
Expand Down
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,9 @@ gdraw_matrix(mat_3x5)
<img src="man/figures/README-ggplot2-example-1.png" width="100%" />

``` r
# Disable showing the cell indices
gdraw_matrix(mat_3x5, show_cell_indices = FALSE)
```

<img src="man/figures/README-ggplot2-example-2.png" width="100%" />

``` r
# Show row and column indices
gdraw_matrix(
mat_3x5,
show_row_indices = TRUE, show_column_indices = TRUE,
show_cell_indices = FALSE)
```

<img src="man/figures/README-ggplot2-example-3.png" width="100%" />

``` r
# Highlight cells over a specific value
gdraw_matrix(mat_3x5, highlight_cells = mat_3x5 > 4)
```

<img src="man/figures/README-ggplot2-example-4.png" width="100%" />
<img src="man/figures/README-ggplot2-example-2.png" width="100%" />
Binary file modified man/figures/README-ggplot2-example-2.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 0366594

Please sign in to comment.