Plot a Histogram of Edge Weights in the Network
# S3 method for tna
hist(x, breaks, col = "lightblue", main, xlab, border = "white", ...)
A histogram
object of edge weights.
a vector of values for which the histogram is desired.
one of:
a vector giving the breakpoints between histogram cells,
a function to compute the vector of breakpoints,
a single number giving the number of cells for the histogram,
a character string naming an algorithm to compute the number of cells (see ‘Details’),
a function to compute the number of cells.
In the last three cases the number is a suggestion only; as the
breakpoints will be set to pretty
values, the number
is limited to 1e6
(with a warning if it was larger). If
breaks
is a function, the x
vector is supplied to it
as the only argument (and the number of breaks is only limited by
the amount of available memory).
a colour to be used to fill the bars.
A character
string defining the title of the plot.
A character
string defining the vertical axis label.
the color of the border around the bars. The default is to use the standard foreground color.
Additional arguments passed to graphics::hist()
.
model <- tna(group_regulation)
hist(model)
Run the code above in your browser using DataLab