Skip to contents

Plot a Histogram of Edge Weights in the Network

Usage

# S3 method for class 'tna'
hist(x, breaks, col = "lightblue", main, xlab, border = "white", ...)

Arguments

x

a vector of values for which the histogram is desired.

breaks

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).

col

a colour to be used to fill the bars.

main

A character string defining the title of the plot.

xlab

A character string defining the vertical axis label.

border

the color of the border around the bars. The default is to use the standard foreground color.

...

Additional arguments passed to graphics::hist().

Value

A histogram object of edge weights.

Examples

model <- tna(group_regulation)
hist(model)