as.igraph: Convert model to a graph.

Description Usage Arguments Examples

Description

Only segments from an input model are extracted and used to build the graph.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'SC'
as.igraph(x, ..., layout = TRUE)

## S3 method for class 'sf'
as.igraph(x, ..., layout = TRUE)

sc_as_igraph(x, ..., layout = TRUE)

## S3 method for class 'SC0'
as.igraph(x, ..., layout = TRUE)

Arguments

x

input model

...

arguments passed to methods

layout

keep the input vertex coordinates x-y as the graph layout, defaults to 'TRUE' otherwise no layout is provided ## sf ## spatstat ## raw track data ## make up segments starting with the unjoin thing, that might show the way forward

Examples

1
2
data("minimal_mesh", package = "silicate")
as.igraph(minimal_mesh)

mdsumner/scgraph documentation built on May 22, 2019, 5:06 p.m.