docs/functions/plot.network.md

plot.network

Plot a network (using the visNetwork package) from a correlation matrix supplied. Rows and columns need to be found in colnames(SPEARobj$data$train$X).

Description

Plot a network (using the visNetwork package) from a correlation matrix supplied. Rows and columns need to be found in colnames(SPEARobj$data$train$X).

Usage

list(list("plot"), list("network"))(
  correlation.matrix = NULL,
  correlation.cutoff = 0.5,
  allow.same.dataset = FALSE,
  sign = "both"
)

Arguments

Argument |Description ------------- |---------------- correlation.matrix | Which factors to return features for? Accepts integers (i.e. factors = c(1,2,4) or factors = 1) Defaults to NULL (all). correlation.cutoff | What is the correlation cutoff to be included in the plot? Defaults to 0.5 allow.same.dataset | Should connections within the same dataset be plotted? Defaults to FALSE sign | Which direction of correlations to show? Can be "both" (default), "pos" (positive), or "negative" (negative).



jgygi/SPEAR documentation built on July 5, 2023, 5:35 p.m.