Learn R Programming

psygenet2r (version 1.2.0)

plot,DataGeNET.Psy,ANY-method: Plots the content of a DataGeNET.Psy or JaccardIndexPsy object.

Description

This functions llows to create a variety of plots for DataGeNEt.Psy and JaccardIndexPsy objects.

Usage

"plot"(x, y, layout = igraph::layout.fruchterman.reingold, type = "disease", verbose = FALSE, ...)

Arguments

x
Object of class DataGeNET.Psy
y
NOT USED
layout
Function to design the location of the different nodes. By default layout.fruchterman.reingold from igraph is used.
type
Type of the drawn chart. By default it is "disease" but it also can be "individual", "disease", "disease class", "venn", "barplot", "heatmapGenes", "heatmapScore" or "heatmap".
verbose
By default FALSE. If set to TRUE information on the drawing process will be shown.
...
Passed to inner functions for different plots.

Value

A plot for DataGeNET.Psy.

Examples

Run this code
data(qr)
plot(qr) # for all-disease plot
plot(qr, type = 'disease class') # for MPI plot

Run the code above in your browser using DataLab