Skip to content

Commit

Permalink
Re-render readme showing ggplot2
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 10, 2024
1 parent 36f5d36 commit 7e2c44e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ This is a basic example which shows you how to solve a common problem:
library(drawr)
mat_3x5 = matrix(round(rnorm(15, 0, 4), 2), ncol = 5)
visualize_matrix_data(mat_3x5, highlight_cells = mat_3x5 > 0)
# Graphic of matrix data structure using base R graphics
visualize_matrix_data(mat_3x5, highlight_cells = mat_3x5 > 0)
# Graphic of matrix data structure using ggplot2
visualize_matrix_data_ggplot(mat_3x5, highlight_cells = mat_3x5 > 0)
```

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ This is a basic example which shows you how to solve a common problem:
library(drawr)

mat_3x5 = matrix(round(rnorm(15, 0, 4), 2), ncol = 5)
visualize_matrix_data(mat_3x5, highlight_cells = mat_3x5 > 0)

# Graphic of matrix data structure using base R graphics
visualize_matrix_data(mat_3x5, highlight_cells = mat_3x5 > 0)

# Graphic of matrix data structure using ggplot2
visualize_matrix_data_ggplot(mat_3x5, highlight_cells = mat_3x5 > 0)
```

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

Please sign in to comment.