Learn R Programming

bioimagetools (version 1.1.8)

nearest.neighbour.distribution: Nearest neighbor distribution (D curve)

Description

Nearest neighbor distribution (D curve)

Usage

nearest.neighbour.distribution(
  X,
  Y,
  Z,
  X2 = X,
  Y2 = Y,
  Z2 = Z,
  same = TRUE,
  psz = 25,
  main = "Nearest neighbour distribution",
  file = NULL,
  return = FALSE
)

Arguments

X

X coordinates of point pattern 1

Y

Y coordinates of point pattern 1

Z

Z coordinates of point pattern 1

X2

X coordinates of point pattern 2

Y2

Y coordinates of point pattern 2

Z2

Z coordinates of point pattern 2

same

binary, FALSE for cross D curve

psz

pointsize for discretization

main

Title for graphic

file

File name for PNG file. If NULL, plots to standard device.

return

Logical. Return histogram?

Value

histogram of nearest neighbors

Examples

Run this code
# NOT RUN {
p<-read.csv(system.file("extdata","cell.csv",package="bioimagetools")) 
nearest.neighbour.distribution(p$X,p$Y,p$Z)
# }

Run the code above in your browser using DataLab