Basic matrix plot method for SBM object or mesoscopic view
an object inheriting from class SBM
character for the type of plot: either 'data' (true connection), 'expected' (fitted connection) or 'meso' (mesoscopic). Default to 'data'.
logical: should the rows and columns be ordered according to the clustering? Default to TRUE
(not taken into account for 'meso').
list with parameters for 'meso' type plot and data type plot. Details are given below
additional parameters for S3 compatibility. Not used
a ggplot2 object for the 'data'
and 'expected'
, a list with the igraph object g
and the layout
for the 'meso'
The list of parameters plotOptions
for the mesoscopic plot is:
seed to control the layout
character string for the title. Default value is NULL
Default value = NULL
Default value is "salmon2"
Node border color.Default value is "black"
One of "none", "circle", "square", "csquare", "rectangle" "crectangle", "vrectangle", "pie", "raster", or "sphere". Default value = "circle"
Size of the node (default is 2)
The second size of the node (e.g. for a rectangle)
Names of the vertices. Default value is the label of the nodes
Default value is "black"
Default value is 2. Font: 1 plain, 2 bold, 3, italic, 4 bold italic, 5 symbol
Font size (multiplication factor, device-dependent).Default value is 0.9.
Distance between the label and the vertex. Default value is 0
The position of the label in relation to the vertex. default value is 0
Threshold under which the edge is not plotted. Default value is = -Inf
Default value is "gray"
Factor parameter. Default value is 10
Default value is 1
Default value is 2
Line type, could be 0 or "blank", 1 or "solid", 2 or "dashed", 3 or "dotted", 4 or "dotdash", 5 or "longdash", 6 or "twodash". Default value is "solid"
Default value is = 0.3.
For type = 'data' or 'expected plot', the list of parameters plotOptions
is
Boolean. Set TRUE if you want to see the legend. Default value is FALSE
Boolean. Set TRUE if you want to print the title of the legend. Default value is FALSE
Position of the legend. Possible values are 'bottom', 'top','left,'right'. Default value is 'bottom'
Set true if the rownames must be plotted. Default value is FALSE
Set true if the colNames must be plotted. Default value is FALSE
Chain of character. The color of the lines to separate groups if a clustering is provided. Default value is red
Numeric. Width of the lines to separate groups. Default value is NULL, automatically chosen
Chain of character. Title of the plot. Default value is NULL