Methods to create Concept Network (Cnet) plots
from a MemPlotFolio object.
Arguments
- x
MemPlotFolioobject- type
characterused forCnetCollapsed()- num
integernumber of exemplar pathways, used withCnetExemplar()- cluster
charactername of pathway cluster which matches an entry inClusters(x).- do_plot
logicalwhether to render the igraph usingjam_igraph().- legend_x, legend_y
passed to
mem_legend(). The defaultlegend_x='bottomleft'. Uselegend_x=FALSEto hide the legend.- main
characterwith plot title.For
CnetCluster()ifClusterLabels(x)is defined, it will use the corresponding label as plot title, otherwise if it usesnames(Clusters(x)). To hide the title, use main=FALSE.
- ...
additional arguments may be recognized.
Details
The following methods are defined for MemPlotFolio:
CnetCollapsed(x, type, do_plot, legend_x, legend_y)Returns
igraphCnet object with pathways collapsed usingClusters(). Argumenttypecontrols the pathway cluster label: 'title' uses the cluster title; 'set' uses the abbreviated set names; 'cluster' usesClusterLabels()if defined. Append'2'suffix to hide gene labels, for exampletype='title2'will display pathway cluster title, and hide gene labels.CnetExemplar(x, num, do_plot, legend_x, legend_y, main)Returns
igraphCnet object with exemplar pathways for each cluster inClusters(). Argument 'num' defines the number of exemplar pathways used for each cluster. It can be a single value, or vector of values applied in order ofClusters().CnetCluster(x, cluster, do_plot, legend_x, legend_y, main)Returns
igraphCnet object foran individual cluster defined inClusters(). Argument 'cluster' defines the cluster, and must match an entry inClusters()or be anintegerindex to the cluster.