From 7ba4346924b12593e45d55ef873e6eaf604f5c4b Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Tue, 9 Jan 2024 22:49:42 -0800 Subject: [PATCH] Roll a readme (TODO: Fix graph sizes) --- README.Rmd | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 README.Rmd diff --git a/README.Rmd b/README.Rmd new file mode 100644 index 0000000..41c7fcf --- /dev/null +++ b/README.Rmd @@ -0,0 +1,44 @@ +--- +output: github_document +--- + + + +```{r, include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>", + fig.path = "man/figures/README-", + out.width = "100%" +) +``` + +# drawr + + +[![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) + + +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) +``` + diff --git a/README.md b/README.md index a22ab72..f68bf44 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,34 @@ + + + # drawr -Draw different R data structures on graphics + + + +[![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) + + +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) +``` + +