Converts adpcr
object to the list of
ppp.object
s allowing spatial analysis.
adpcr2ppp(input, marks = TRUE, plot = FALSE)
adpcr
class containing data
from one or more panels.TRUE
, marks values for non-empty partitions.TRUE
, array is plotted.A list containing objects with class
ppp.object
with the length equal to the number of
arrays (minimum 1).
Each array is independently converted by ppp
function. marks
attached to each point represent values contained by
the adpcr
object.
#>#># Convert all arrays to ppp objects adpcr2ppp(many_panels)#> $Experiment1.1 #> Marked planar point pattern: 290 points #> marks are numeric, of storage type ‘double’ #> window: rectangle = [1, 45] x [1, 17] units #> #> $Experiment1.2 #> Marked planar point pattern: 317 points #> marks are numeric, of storage type ‘double’ #> window: rectangle = [1, 45] x [1, 17] units #> #> $Experiment1.3 #> Marked planar point pattern: 318 points #> marks are numeric, of storage type ‘double’ #> window: rectangle = [1, 45] x [1, 17] units #> #> $Experiment1.4 #> Marked planar point pattern: 299 points #> marks are numeric, of storage type ‘double’ #> window: rectangle = [1, 45] x [1, 17] units #> #> $Experiment1.5 #> Marked planar point pattern: 322 points #> marks are numeric, of storage type ‘double’ #> window: rectangle = [1, 45] x [1, 17] units #># 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)#> [1] "list"# It's a list with the length 1. The third plate is a first element on this #list class(third_plate2[[1]])#> [1] "ppp"