Learn R Programming

nutriNetwork (version 0.2.0)

plot.nutriNetwork: plot for S3 class "nutriNetwork"

Description

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

Usage

# S3 method for 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

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

Run this code
# \dontshow{ 
data(vfit)
out <- nutriNetwork(vfit, method = "npn")
plot(out)  
# }
# \donttest{
data(vfit)
out <- nutriNetwork(vfit, method = "gibbs")
plot(out)   
# }

Run the code above in your browser using DataLab