blob: 055bc46f3c2e48e185e1f2d16e9f9ceaad4138b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/networkplot.R
\name{networkplot}
\alias{networkplot}
\title{Network Plot}
\usage{
networkplot(R, title = NULL)
}
\arguments{
\item{R}{A square numeric matrix with names columns and rows}
\item{title}{Optional plot title}
}
\value{
A ggraph object
}
\description{
Draw an undirected graph from a square matrix
where each variable is a node and the pairwise
entries are the strength of the relationship
(ex: correlation, partial correlation)
}
\examples{
X <- matrix(data = rnorm(100), nrow = 10)
R <- cor(X)
networkplot(R, title = 'Example Correlation Plot')
}
|