Skip to contents

An S4 class to represent an interval matrix.

Note

This class inherits from AdjacencyMatrix.

Author

N. Frerebeau

Examples

## Seven intervals
i <- data.frame(
  start = c(1, 2, 3, 6, 9, 13, 17),
  stop = c(7, 4, 15, 14, 11, 18, 19),
  row.names = c("A", "B", "C", "D", "E", "F", "G")
)

## Do the invervals overlap?
j <- overlap(i)

## Interval graph
graph <- as_graph(j)
plot(graph)