From 869446d52ad8eab5c339f3c098ce126e58e44d86 Mon Sep 17 00:00:00 2001 From: Eike Steinig Date: Mon, 14 Feb 2022 11:22:05 +1100 Subject: [PATCH] remove read_dist from docs [#4] --- docs/POPGENOM.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/POPGENOM.md b/docs/POPGENOM.md index e8f18cf..8907788 100644 --- a/docs/POPGENOM.md +++ b/docs/POPGENOM.md @@ -56,16 +56,16 @@ Plot the decorated graphs individually or as a panel: g %>% plot_netview(nrow=4, ncol=5) # panel plots ``` -Graph construction from a distance matrix file (symmetrical or triangular, without column or row names) using default plotting without data: +Graph construction from a distance matrix file (symmetrical without column or row names) using default plotting without data decoration: ```r -read_dist("dist.tsv", sep="\t") %>% netview(k=20) %>% plot_netview() +as.matrix(read.csv("dist.tsv", sep="\t", header=F)) %>% netview(k=20) %>% plot_netview() ``` Of course this pipeline also works without piping: ```r -dist_matrix <- read_dist("dist.tsv", sep="\t") +dist_matrix <- as.matrix(read.csv("dist.tsv", sep="\t", header=F)) g <- netview(dist_matrix, k=20) plot_netview(g) ```