Learn R Programming

linkcomm (version 1.0-11)

plot.OCG: The OCG Plotting Function

Description

This function plots various different OCG graphs.

Usage

# S3 method for OCG
plot(x, type = "", ...)

Arguments

x

An object of class OCG.

type

A character string specifying the type of plot. Can be one of "members" or "graph". See Details below.

Additional arguments to be passed to plot.

Value

Plots to the current device.

Details

"members" plots a community membership matrix; "graph" plots a graph layout of the network with coloured link communities. See the OCG plotting function for details of arguments that can be passed to plot.OCG: plotOCGraph, plotLinkCommMembers.

References

Kalinka, A.T. and Tomancak, P. (2011). linkcomm: an R package for the generation, visualization, and analysis of link communities in networks of arbitrary size and type. Bioinformatics 27, 2011-2012.

See Also

plotOCGraph, plotLinkCommMembers

Examples

Run this code
# NOT RUN {
## Generate graph and extract OCG communities.
g <- swiss[,3:4]
oc <- getOCG.clusters(g)

## Plot a graph of OCG clusters.
plot(oc, type = "graph")
# }

Run the code above in your browser using DataLab