R/nearestneighbourdistribution.R
nearest.neighbour.distribution.Rd
Nearest neighbor distribution (D curve)
nearest.neighbour.distribution(
X,
Y,
Z,
X2 = X,
Y2 = Y,
Z2 = Z,
same = TRUE,
psz = 25,
main = "Nearest neighbour distribution",
file = NULL,
return = FALSE
)
X coordinates of point pattern 1
Y coordinates of point pattern 1
Z coordinates of point pattern 1
X coordinates of point pattern 2
Y coordinates of point pattern 2
Z coordinates of point pattern 2
binary, FALSE for cross D curve
pointsize for discretization
Title for graphic
File name for PNG file. If NULL, plots to standard device.
Logical. Return histogram?
histogram of nearest neighbors
p<-read.csv(system.file("extdata","cell.csv",package="bioimagetools"))
nearest.neighbour.distribution(p$X,p$Y,p$Z)