summaryrefslogtreecommitdiff
path: root/README.Rmd
diff options
context:
space:
mode:
Diffstat (limited to 'README.Rmd')
-rw-r--r--README.Rmd8
1 files changed, 4 insertions, 4 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
```