plot.kdiffnet: plot kdiffnet result specified by user input

Description Usage Arguments Details Value Author(s) Examples

View source: R/plot.R

Description

This function can plot kdiffnet result

Usage

1
2
3
## S3 method for class 'kdiffnet'
plot(x, type = "task", index = NULL,
  hastitle = TRUE, ...)

Arguments

x

output generated from diffee function (diffee class)

type

type of graph. There are two options:

  • "task" (difference graph)

  • "neighbour" (zoom into nodes in the difference graph specified further by parameter "index" (node id)

index

determines which node(s) to zoom into when parameter "type" is "neighbour". This parameter could either be an integer or vector of integers representing node ids

hastitle

determines whether the graph title is displayed or not (TRUE to display / FALSE to hide)

...

extra parameters passed to plot.igraph (zoom into one node or multiple nodes)

Details

when only the kdiffnet result is provided, the function will plot all graphs with default numeric labels. Users can specify multiple subID to zoom in multiple nodes. Each graph will include a descriptive title.

Value

a plot of the difference graph from kdiffnet result specified by user input

Author(s)

Beilun Wang, Zhaoyang Wang (Author), Zhaoyang Wang (maintainer) zw4dn@virginia.edu

Examples

1
2
3
4
5
6
library(JointNets)
data(exampleData)
result = kdiffnet(exampleData[[1]], exampleData[[2]],
W = matrix(1,20,20), g = rep(0,20),epsilon = 0.2,
lambda = 0.4,covType = "cov")
plot(result)

QData/JointNets documentation built on Nov. 17, 2019, 3:04 p.m.