origin-methods: methods for origin estimation objects of class 'origin'

Description Usage Arguments Value See Also Examples

Description

print produces an output for objects of class origin.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'origin'
print(x, ...)

## S3 method for class 'origin'
summary(object, x = object, ...)

## S3 method for class 'origin'
plot(x, y = "id", start, ...)

## S3 method for class 'origin'
performance(x, start, graph = NULL, ...)

Arguments

x

object of class origin, origin estimation object from function origin_xxx

...

further arguments to be passed to default plot function

object

object of class origin, origin estimation object from function origin_xxx; passed to x

y

character specifying the variable being plotted at the y-axis; options are 'id' for node identifier (default), 'mdist' for mean distance (only available for origin_edm) or 'wvar' for weighted variance (only available for origin_edm)

start

numeric, giving the node of the true origin

graph

igraph object specifying the underlying network graph with attribute 'length' on edges for calculation of distance to the correct origin

Value

performance.origin returns a data.frame with variables

See Also

origin plot_performance

Examples

1
2
3
4
5
6
7
8
9
data(ptnGoe)
data(delayGoe)

res <- origin(events=delayGoe[10,-c(1:2)], type='centrality', graph=ptnGoe)
res

summary(res)
plot(res, start=1)
performance(res, start=1, graph=ptnGoe)

NetOrigin documentation built on April 1, 2021, 5:07 p.m.