From e39d856d5cc8479c580a57a62520f2ca32d43565 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Tue, 16 Jun 2026 17:22:33 -0700 Subject: Fix side by side --- README.Rmd | 8 ++++---- README.md | 7 ++++--- man/figures/README-example-1.png | Bin 49390 -> 48834 bytes 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.Rmd b/README.Rmd index bf24ff4..ae302ae 100644 --- a/README.Rmd +++ b/README.Rmd @@ -31,13 +31,13 @@ pak::pkg_install('git::https://codeberg.org/csobczak/csobczak.r') ## Example -This is a basic example which shows you how to solve a common problem: - +### Plotting functions ```{r example} library(csobczak.r) library(patchwork) X <- matrix(data = rnorm(100), nrow = 10) R <- cor(X) -corplot(R, title = 'Example Correlation Plot') + -networkplot(R, title = 'Example Network Plot') +p1 <- corplot(R, title = 'Example Correlation Plot') +p2 <- networkplot(R, title = 'Example Network Plot') +p1 + p2 ``` diff --git a/README.md b/README.md index 4a1456b..5f95c2a 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,16 @@ pak::pkg_install('git::https://codeberg.org/csobczak/csobczak.r') ## Example -This is a basic example which shows you how to solve a common problem: +### Plotting functions ``` r library(csobczak.r) library(patchwork) X <- matrix(data = rnorm(100), nrow = 10) R <- cor(X) -corplot(R, title = 'Example Correlation Plot') + -networkplot(R, title = 'Example Network Plot') +p1 <- corplot(R, title = 'Example Correlation Plot') +p2 <- networkplot(R, title = 'Example Network Plot') +p1 + p2 ``` diff --git a/man/figures/README-example-1.png b/man/figures/README-example-1.png index 25d492c..a5e59b1 100644 Binary files a/man/figures/README-example-1.png and b/man/figures/README-example-1.png differ -- cgit v1.2.3