Considering the class of the argument which is passed to plot, the graphical output differs.
# S4 method for omics_array,ANY
plot(x, y, ...)# S4 method for omics_network,ANY
plot(
x,
y,
choice = "omics_network",
nv = 0,
gr = NULL,
ini = NULL,
color.vertex = NULL,
color.edge = NULL,
video = TRUE,
weight.node = NULL,
ani = FALSE,
size = c(2000, 1000),
label_v = 1:dim(x@omics_network)[1],
horiz = TRUE,
legend.position = "topleft",
frame.color = "black",
label.hub = FALSE,
nround = 2,
ani.img.name = "Rplot",
ani.imgdir = "images",
ani.htmlfile = "index.html",
outdir,
ani.group.legend = "Cluster",
layout = ini,
alpha = 1,
pixmap.color = terrain.colors(20),
...
)
# S4 method for omics_predict,ANY
plot(
x,
time = NULL,
label_v = NULL,
frame.color = "white",
ini = NULL,
label.hub = FALSE,
edge.arrow.size = 0.7,
edge.thickness = 1
)
a omics_array object, a omics_network object or a omics_predict object
optional and not used if x is an appropriate structure
additional parameters
what graphic should be plotted: either "F" (for a representation of the matrices F) or "network".
the level of cutoff. Defaut to `0`.
a vector giving the group of each gene
using the ``position'' function, you can fix the position of the nodes.
a vector defining the color of the vertex.
color of the edges
if ani is TRUE and video is TRUE, the result of the animation is saved as an animated GIF.
nodes weighting. Defaults to `NULL`.
animated plot?
vector giving the size of the plot. Default to `c(2000,1000)`.
vector defining the vertex labels.
landscape? Defaults to `TRUE`.
position of the legend.
color of the frames.
logical ; if TRUE only the hubs are labeled.
number of digits to display
name of image file for animations
name of the image directory for animations
name of the html file for animations
name of the outdir for animations
legend for animations
layout of the graphs
transparency of the graphs
color for pixmap graphs
sets the time for plot of the prediction. Defaults to `NULL`
size of the arrows ; default to 0.7.
edge thickness ; default to 1.
a omics_array object
a vector of cutoff at which the network should be shown
a omics_network object
Optionnal arguments:
a vector giving the group of each gene
what graphic should be plotted: either "F" (for a representation of the matrices F) or "network".
the level of cutoff. Defaut to 0.
using the ``position'' function, you can fix the position of the nodes
a vector defining the color of the vertex
vector giving the size of the plot. Default to c(2000,1000). The animation can only be created in the working directory. See the help page of the animation method.
if ani is TRUE and video is TRUE, the animation result is a GIF video
vector defining the vertex labels
position of the legend
color of the frames
logical ; if TRUE only the hubs are labeled
size of the arrows ; default to 0.7
edge thickness ; default to 1.
a omics_predict object
Optional arguments: see plot for omics_network
Bertrand Frederic, Myriam Maumy-Bertrand.
if(require(CascadeData)){
data(micro_US, package="CascadeData")
micro_US<-as.omics_array(micro_US[1:100,],time=c(60,90,210,390),subject=6)
plot(micro_US)
}
Run the code above in your browser using DataLab