plot.nutriNetwork {nutriNetwork}R Documentation

plot for S3 class "nutriNetwork"

Description

Plot the graph path which is the output of the nutriNetwork.

Usage

## S3 method for class 'nutriNetwork'
plot( x, n.memberships=NULL , ... )

Arguments

x

An object from "nutriNetwork" class.

n.memberships

A vector containing number of variables in each group. For example, the vfit dataset that is provided in the package contains 3 different groups, where the first 7 variables are general covariates (e.g. age, sex, BMI, and etc.), the next 17 variables belong to nutrient (e.g. vitamins B6, B12, C, D, and etc.), and the last 5 variables belong to physical performance and muscle strength. Thus, n.memberships = c(7, 17, 5). If n.memberships = NULL, in the graph visualization all markers are represented same colour.

...

System reserved (No specific usage)

Author(s)

Pariya Behrouzi
Maintainer: Pariya Behrouzi pariya.behrouzi@gmail.com

References

Behrouzi, P., and Wit, E. C. (2017c). netgwas: An R Package for Network-Based Genome-Wide Association Studies. arXiv preprint, arXiv:1710.01236.

Examples



data(vfit)
out <- nutriNetwork(vfit, method = "gibbs")
plot(out)   


[Package nutriNetwork version 0.1.2 Index]