adpcr2ppp: Convert adpcr to ppp

Description

Converts adpcr object to the list of ppp.objects.

Usage

1
adpcr2ppp(input, marks = TRUE, plot = FALSE)

Arguments

input

Object of the adpcr class containing data from one or more panels.

marks

If TRUE, marks values for non-empty partitions. See ppp for more in-depth description.

plot

If TRUE, array is plotted.

Details

Each array is independently converted by ppp function. marks attached to each point represent values contained by the adpcr object.

Value

A list containing objects with class ppp.object with the length equal to the number of arrays (minimum 1).

Author(s)

Michal Burdukiewcz, Stefan Roediger.

See Also

ppp.object, ppp.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
many_panels <- sim_adpcr(m = 400, n = 765, times = 1000, pos_sums = FALSE, 
                   n_panels = 5)

# Convert all arrays to ppp objects
adpcr2ppp(many_panels)

# Convert all arrays to ppp objects and get third plate
third_plate <- adpcr2ppp(many_panels)[[3]]

# Convert only third plate to ppp object
third_plate2 <- adpcr2ppp(extract_run(many_panels, 3))

# Check the class of a new object
class(third_plate2)

# It's a list with the length 1. The third plate is a first element on this 
#list
class(third_plate2[[1]])

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.