summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
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
```
<img src="man/figures/README-example-1.png" alt="" width="100%" />