subset a GridDensity object.

# S3 method for GridDensity
subset(
  x,
  bin.density.threshold = NULL,
  mesh.density.threshold = -1,
  n.cells.threshold = 10,
  n.mesh.threshold = -1,
  ...
)

Arguments

x,

GridDensity object

bin.density.threshold

Only bins with density greater than this value are retained. Default: mean-3*sd

mesh.density.threshold

Only mesh points with density greater than this value are retained. We do not filter on mesh point directly. Default: -1

n.cells.threshold

Only mesh points with assigned cells no less than this value are retained. Default: 10

n.mesh.threshold

Only bins with number of mesh pints no less than this value are retained. Default: -1

...

Arguments passed to other methods. Default: max number of mesh points per bin minus 1.