Skip to content

Commit

Permalink
Roll a readme (TODO: Fix graph sizes)
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 10, 2024
1 parent 7b9b7a9 commit 7ba4346
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
44 changes: 44 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
output: github_document
---

<!-- README.md is generated from README.Rmd. Please edit that file -->

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# drawr

<!-- badges: start -->
[![R-CMD-check](https://github.com/coatless-rpkg/drawr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/drawr/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

The goal of drawr is to draw different R data structures on graphics

## Installation

You can install the development version of drawr from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("coatless-rpkg/drawr")
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r}
#| label: example
library(drawr)
mat_3x5 = matrix(round(rnorm(15, 0, 4), 2), ncol = 5)
visualize_matrix_data(mat_3x5, highlight_cells = mat_3x5 > 0)
```

34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# drawr
Draw different R data structures on graphics

<!-- badges: start -->

[![R-CMD-check](https://github.com/coatless-rpkg/drawr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/drawr/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

The goal of drawr is to draw different R data structures on graphics

## Installation

You can install the development version of drawr from
[GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("coatless-rpkg/drawr")
```

## Example

This is a basic example which shows you how to solve a common problem:

``` r
library(drawr)

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

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

0 comments on commit 7ba4346

Please sign in to comment.