NEWS
spatstat 3.1-1.003
OVERVIEW
- Tweaks to documentation.
- List the history of all changes made to a function in spatstat.
NEW FUNCTIONS
- changes
Lists the history of all changes that have been made to
a particular function in the spatstat family of packages.
spatstat 3.1-1 (2024-07-15)
OVERVIEW
- Internal changes to satisfy CRAN.
spatstat 3.1-0
OVERVIEW
- New package 'spatstat.univar'
- Minor internal improvements.
PACKAGE DEPENDENCE
- spatstat.univar
The new package 'spatstat.univar' has joined the spatstat family.
It supports estimation and manipulation of probability distributions
of one-dimensional random variables.
Some functions have been moved from 'spatstat.geom', 'spatstat.random'
and 'spatstat.explore' into the new package 'spatstat.univar'.
SIGNIFICANT USER-VISIBLE CHANGES
- spatstat.family
The list of sub-packages now includes 'spatstat.univar'.
spatstat 3.0-8 (2024-03-26)
OVERVIEW
- Updated package dependencies and documentation.
- Vignette on shapefiles updated and reinstated.
SIGNIFICANT USER-VISIBLE CHANGES
- Vignette 'shapefiles'
This vignette has been updated. The new version uses
package 'sf' instead of the defunct package 'maptools'.
spatstat 3.0-7 (2023-10-30)
OVERVIEW
- New vignette on function objects (class 'fv' and 'envelope')
- Vignette on shapefiles temporarily removed.
- Updated cross-references to sub-packages.
- Minor changes to package information.
SIGNIFICANT USER-VISIBLE CHANGES
- Vignette 'fv'
New vignette which explains how to manipulate and plot
objects of class 'fv' and 'envelope'.
- Vignette 'shapefiles'
This vignette has been temporarily removed because of its dependence
on the defunct packages 'sp' and 'maptools'. It will be rewritten
and reinstated soon.
spatstat 3.0-6 (2023-05-17)
OVERVIEW
- Updated cross-references to sub-packages.
- Package documentation corrected and updated.
spatstat 3.0-5 (2023-04-22)
OVERVIEW
- Package documentation repaired (latex package issues).
spatstat 3.0-4
OVERVIEW
- Package version information updated.
- Minor omissions corrected in vignettes.
- Package documentation corrected and updated.
spatstat 3.0-3 (2023-01-28)
OVERVIEW
- Package version information updated.
- Minor errors corrected in vignettes.
spatstat 3.0-2 (2022-11-10)
OVERVIEW
spatstat 3.0-1
OVERVIEW
- Package nicknames are temporarily suppressed.
spatstat 3.0-0
OVERVIEW
- Further split of the spatstat family of packages.
- All package versions have been updated to 3.0-x.
SIGNIFICANT USER-VISIBLE CHANGES
- Package structure
The package 'spatstat.core' has been split into two packages called
'spatstat.explore' (for exploratory data analysis)
and 'spatstat.model' (for modelling and formal inference).
- Package dependence
'spatstat' now depends on the new packages 'spatstat.explore'
and 'spatstat.model' which have replaced the old package 'spatstat.core'.
- spatstat.family
Packages 'spatstat.explore' and 'spatstat.model' have been added
and 'spatstat.core' has been deleted from the list of packages.
- bugfixes, latest.news
Updated to cover the new sub-packages 'spatstat.explore'
and 'spatstat.model'.
spatstat 2.3-4 (2022-04-01)
OVERVIEW
- Minor bug fixes and improvements.
BUG FIXES
- latest.news
Did not include news from the new package 'spatstat.random'.
Fixed.
- spatstat.family
Omitted the new package 'spatstat.random'.
Fixed.
spatstat 2.3-3 (2022-02-21)
OVERVIEW
spatstat 2.3-1
OVERVIEW
- spatstat depends on the package 'spatstat.random'
SIGNIFICANT USER-VISIBLE CHANGES
- package dependence
spatstat now depends on the new package 'spatstat.random'.
spatstat 2.3-0 (2021-12-12)
OVERVIEW
- Minor tweaks to package information and documentation
- The NEWS file for package='spatstat' now contains only
the news for the sub-package 'spatstat'. Other changes in the spatstat
family of packages are reported in the NEWS file for the relevant
sub-package.
- 'latest.news' now collects news from all packages in the spatstat family
- 'bugfixes' now collects bug fixes from all packages in the spatstat family
- New function 'spatstat.family'
NEW FUNCTIONS
- spatstat.family
Return the names of all packages in the spatstat family.
SIGNIFICANT USER-VISIBLE CHANGES
- latest.news
Now gives the latest news for all packages in the spatstat family.
- bugfixes
Now lists bugs reported for all packages in the spatstat family.
spatstat 2.2-0 (2021-06-23)
OVERVIEW
- Minor tweaks to package information
spatstat 2.1-0 (2021-04-03)
OVERVIEW
- Minor changes to package structure.
spatstat 2.0-1 (2021-03-13)
OVERVIEW
- Minor changes to satisfy CRAN checks.
spatstat 2.0-0
OVERVIEW
- We thank Corey Anderson, Michael Chirico, Andy Craig,
Marcelino de la Cruz, Tilman Davies, Pavel Fibich,
Kurt Hornik, Gopalan Nair, Yonatan Rosen and Rasmus Waagepetersen
for contributions.
- spatstat has been divided into 7 sub-packages
(spatstat.utils, spatstat.data, spatstat.sparse,
spatstat.geom, spatstat.core, spatstat.linnet and spatstat).
- spatstat now depends on R version 3.5.0 or later.
- Version nickname: "Caution: contains small parts"
SIGNIFICANT USER-VISIBLE CHANGES
- package structure
The original 'spatstat' package has been divided into 7 sub-packages
(spatstat.utils, spatstat.data, spatstat.sparse,
spatstat.geom, spatstat.core, spatstat.linnet and spatstat).
The remaining 'spatstat' package requires all the other sub-packages.
Your existing code scripts should still work with minimal changes.
- sessionInfo
Output now lists packages that are imported but not loaded.
- sessionLibs
Package names are now sorted alphabetically.
spatstat 1.64-1 (2020-05-12)
OVERVIEW
- Important bug fix in vcov.ppm
- Relative risk estimation may include case weights.
- We thank Ian Buller, Brian Ripley, Maximilian Vogtland
and Maximilian Hesselbarth for contributions.
- Nickname: 'Help you I can, yes!'
SIGNIFICANT USER-VISIBLE CHANGES
- rshift.ppp, rshift.splitppp
New argument 'nsim'.
- relrisk.ppp
New argument 'weights'.
- density.splitppp
New argument 'weights'.
BUG FIXES
- vcov.ppm
Variances were sometimes overestimated for Gibbs models.
That is, entries of the Fisher information matrix were underestimated,
because some contributions due to interaction were omitted
(due to a coding error).
Fixed.
- density.ppp
Crashed when se=TRUE if there were multiple columns of 'weights'.
Fixed.
- rbind.hyperframe
Crashed unless all arguments had the same number of rows.
(Spotted by Maximilian Vogtland).
Fixed.
spatstat 1.64-0
OVERVIEW
- We thank Robert Aue, Tilman Davies, Greg McSwiggan, Tyler Rudolph
and Rasmus Plenge Waagepetersen for contributions.
- Interactive graphics functions have been removed to a separate package.
- spatstat no longer needs the packages 'tcltk' and 'rpanel'.
- The suggested package 'maptools' should be version 0.9-9 or later.
- Important bug fix in density.ppp.
- Add new vertices to a linear network.
- Relative risk estimation on a network.
- Leave-one-out density estimation on a network.
- Improvements and extensions to linear networks code.
- Improvements to 'nndist' methods.
- Function lengths.psp has been renamed lengths_psp.
- Bug fixes related to mppm.
- Stability improvements.
- Version nickname: 'Susana Distancia'
NEW FUNCTIONS
- relrisk.lpp
Method for 'relrisk' for point patterns on a linear network.
- bw.relrisklpp
Bandwidth selection for relative risk on a network.
- densityfun.lpp
Method for 'densityfun' for point patterns on a linear network.
- addVertices
Add new vertices to a network, at locations outside the existing network.
- lengths_psp
This is the new name of the function 'lengths.psp',
which had to be changed because of a conflict with the generic 'lengths'.
- densityEqualSplit
The equal-split algorithm for kernel density estimation on a network
is now visible as a separate function.
- densityHeat
The heat-equation algorithm for kernel density estimation on a network
is now visible as a separate function. It has also been extended
to computing leave-one-out density estimates at the data points.
- hotrod
Compute the heat kernel kappa(u,v) on a one-dimensional line segment.
- heatkernelapprox
Calculate an approximation to the value of the heat kernel
on a network evaluated at the source point, kappa(u,u).
SIGNIFICANT USER-VISIBLE CHANGES
- nndist.pp3, nndist.ppx, nndist.lpp
These functions now recognise the argument 'by'
allowing computation of the nearest distance to each group of points.
- pairdist.lpp, crossdist.lpp
These functions can now handle large networks,
using the sparse representation.
- density.lpp, densityQuick.lpp
Infinite bandwidth (sigma=Inf) is now permitted,
and results in a density estimate that is constant over all locations.
- as.linnet.psp
The resulting network now has an attribute 'camefrom'
indicating the provenance of each line segment in the network.
- as.linnet.linnet
New argument 'maxsize'.
- repairNetwork
Increased capability of detecting and repairing inconsistencies.
- joinVertices
New argument 'marks'.
- insertVertices
Marks attached to the lines of the network are now retained.
- as.lpp
Accepts more data formats.
- iplot, iplot.ppp, iplot.layered, iplot.linnet, iplot.default
These interactive plotting functions have been removed from spatstat
into a new package 'spatstat.gui'
- istat
This interactive analysis function has been removed from spatstat
into a new package 'spatstat.gui'
- crossdist.lpp
New argument 'check'.
- lengths.psp
This function will soon be Deprecated,
in favour of the new name 'lengths_psp'
- density.lpp
Formal arguments changed. No effect on usage.
- integral.linim
Now handles complex-valued functions.
- transect.im
New argument 'nsample'.
- bw.lppl
Accelerated when distance="path".
- collapse.fv
Recognises the abbreviations used by fvnames()
BUG FIXES
- density.ppp
Edge correction factors were calculated incorrectly when the
window was not a rectangle, causing a negative bias in the
estimated intensity. [Spotted by Tilman Davies.]
Bug introduced in spatstat 1.57-0, october 2018.
Fixed.
- mppm
Internal data were malformed if the interaction was Hardcore()
or MultiHard() or a hybrid involving these interactions.
This caused various errors when the fitted model was used.
Fixed.
- mppm
Ignored the arguments 'nd' and 'eps' controlling the quadrature scheme.
Fixed.
- "[.linnet", "[.lpp"
In X[W] where W is a window, if a vertex of the network
lay exactly on the boundary of W, an edge of length zero was created.
Fixed.
- valid.ppm
Crashed sometimes when applied to the result of subfits().
Fixed.
- as.im.densityfun
Crashed if argument W was missing.
Fixed.
- as.linnet.linnet
This code could crash the R session, when sparse=FALSE, if there was
insufficient memory available to create the matrix of distances
between all pairs of network vertices.
Fixed.
- Summary.linim
A spurious warning was generated when the operation any() or all()
was applied to a logical-valued image on a network.
Fixed.
- "[<-.linim"
Crashed if the assignment would have replaced some existing NA values.
Fixed.
spatstat 1.63-3 (2020-03-01)
OVERVIEW
- Minor changes for compatibility with future versions of R
- Minor improvements
- Version nickname: "Wet paint"
SIGNIFICANT USER-VISIBLE CHANGES
- plot.ppp
The coordinate axes will be plotted if axes=TRUE.
Axis labels xlab, ylab will be plotted if ann=TRUE.
spatstat 1.63-2 (2020-02-23)
OVERVIEW
- Minor changes to satisfy the package checker.
- Version nickname: "I'm sorry Dave, I'm afraid I can't do that"
spatstat 1.63-1
OVERVIEW
- Enhancement to plot.linim
- Fill missing pixel values by taking the nearest defined pixel value.
- Minor improvements and bug fixes.
- spatstat now requires spatstat.utils version 1.17-0.
- Version nickname: 'Made from recycled electrons'
NEW FUNCTIONS
- is.linim
Tests whether an object belongs to class 'linim'.
- nearestValue
Given a pixel image on a subset of a rectangle,
extend the image to the entire rectangle,
using the nearest well-defined pixel value.
SIGNIFICANT USER-VISIBLE CHANGES
- markconnect
Runs faster and handles much larger datasets.
- markvario
Runs faster and handles much larger datasets.
- markcorr, markconnect, markvario
The 'weights' can now be an expression to be evaluated,
or a function, or a pixel image, as well as a numeric vector.
- Smooth.ppp
The 'weights' can now be an expression to be evaluated,
or a function, or a pixel image, as well as a numeric vector.
- rpoislpp
If 'lambda' is a list of 'linim' or 'linfun' objects, then
the argument L can be omitted.
- plot.linim
New argument 'fatten' improves visual appearance when style="colour".
- plot.im, plot.owin
The coordinate axes will be plotted if axes=TRUE.
Axis labels xlab, ylab will be plotted if ann=TRUE.
- bugfixes
If sincedate="all" or sinceversion="all", then all bugs will be listed.
- Jfox
New argument 'warn.trim' makes it possible to suppress repeated warnings.
- requireversion
New argument 'fatal'
BUG FIXES
- predict.rhohat, simulate.rhohat
When applied to a 'rhohat' object computed from
linear network data (lpp or lppm), there was a warning
about the lengths of vectors, and the results were incorrect.
Fixed.
- predict.rhohat, simulate.rhohat
Crashed when applied to a 'rhohat' object computed from *multitype*
linear network data (multitype lpp or lppm).
Fixed.
- Jfox
envelope() commands using the summary function 'Jfox'
crashed sometimes with a message about illegal spacing of 'r' values.
Fixed.
- leverage, influence, dfbetas
Crashed when applied to an 'ippm' object in which
the irregular components of the score, but not the Hessian,
were provided by symbolic differentiation.
Fixed.
- parres
Crashed in rare circumstances, when the data did not contain
enough useable values to perform smoothing.
Fixed.
spatstat 1.63-0 (2020-01-23)
OVERVIEW
- Compute minimum or maximum nearest-neighbour distance between
each pair of types in a multitype point pattern.
- Important bug fix in simulations of the multitype hard core process.
- Numerous improvements and bug fixes.
- Deprecated functions have been removed.
- Version nickname: "Trees in space"
SIGNIFICANT USER-VISIBLE CHANGES
- minnndist, maxnndist
New argument 'by' makes it possible to find the minimum or maximum
nearest neighbour distance between each pair of possible types
in a multitype pattern.
- beachcolours
If 'sealevel' lies outside 'srange', then 'srange' will be extended
to include it (without a warning).
- split<-.ppp
The default for argument 'un' in 'split<-.ppp'
now agrees with the default for the same argument in 'split.ppp'.
- lineardisc
New argument 'add'.
Default plotting behaviour has changed.
- rmh, rmh.default
The printed output of the debugger (invoked by snoop=TRUE)
has been improved.
- plot.owin
New argument 'use.polypath' controls how to plot
a filled polygon when it has holes.
- plot.profilepl
This function has now been documented, and the graphics improved.
- erode.owin, dilate.owin
These deprecated functions have now been deleted
(replaced by erosion.owin and dilation.owin)
- delaunay.distance, delaunay.network
These deprecated functions have now been deleted
(replaced by delaunayDistance, delaunayNetwork)
- dirichlet.edges, dirichlet.network, dirichlet.vertices, dirichlet.weights
These deprecated functions have now been deleted
(replaced by dirichletEdges, dirichletNetwork,
dirichletVertices, dirichletWeights)
BUG FIXES
- rmh, simulate.ppm, MultiHard
Simulated realisations of the multitype hard core model
were completely incorrect (the interaction was effectively removed,
changing the model into a Poisson process).
Fixed.
- kppm, AIC
For kppm models fitted with method='clik2', the resulting value of logLik()
was equal to 1/2 of the correct value. This would have affected
model comparison using AIC, and model selection using step().
Fixed.
- hyperframe
Did not correctly handle date-time values (columns of class 'Date', etc).
Fixed
- rlpp
The resulting pattern was unmarked even when it should have been multitype.
Fixed.
- idw
Estimates were zero if 'se=TRUE' and 'power != 2' and 'at="pixels"'.
Fixed.
- model.matrix.mppm
Sometimes returned a matrix with the wrong number of rows.
Fixed.
- nncross.ppp
Format of output was incorrect if X was an empty pattern.
Fixed.
- rmh, rmh.default
For a marked point process, the debugger did not display the marks.
(The rmh debugger is invoked by calling rmh with snoop=TRUE).
Fixed.
- pairs.im, pairs.linim
The argument 'labels' was sometimes ignored.
Fixed.
- as.im.data.frame
Results were incorrect for factor-valued data.
Fixed.
- relrisk.ppp
Crashed if there were more than 2 types of points
and method = "leastsquares" or "weightedleastsquares".
Fixed.
- as.im.nnfun
Crashed when applied to a function generated by nnfun.psp.
Fixed.
- diagnose.ppm
Crashed for some models with an error message from 'beachcolours'.
Fixed.
- predict.rho2hat
Crashed if one of the original covariates was a function
rather than an image.
Fixed.
- lineardisc
Crashed in some graphics environments.
Fixed.
- lineardisc
Crashed if the network segments had marks.
Fixed.
- rmh
Crashed for multitype models if 'nsave' was specified.
Fixed.
- vcov.mppm, simulate.mppm
Crashed for multitype models with a hardcore interaction component.
Fixed.
- effectfun
Crashed if 'covname' was not the name of a covariate appearing in
the model and was not one of the reserved names 'x', 'y', 'marks'.
Fixed.
spatstat 1.62-2 (2019-12-10)
OVERVIEW
- Urgent bug fixes and workarounds.
- Version nickname: "Shape-shifting lizard"
SIGNIFICANT USER-VISIBLE CHANGES
- colourmap
Argument 'col' is now permitted to have length 1, representing
a colour map in which all values are mapped to the same colour.
- lut
Argument 'outputs' is now permitted to have length 1, representing
a lookup table in which all inputs are mapped to the same output value.
BUG FIXES
- envelope
Crashed sometimes, with a message about unrecognised arguments,
when applied to a summary function created by the user.
Fixed.
spatstat 1.62-1
OVERVIEW
- We thank Mohammad Ghorbani, Ute Hahn, Abdollah Jalilian, Nestor Luambua,
Greg McSwiggan, Annie Mollie and Jakob Gulddahl Rasmussen for contributions.
- spatstat now requires spatstat.utils version 1.15-0
and goftest version 1.2-2.
- Nearest Neighbour Index function can now return mark values.
- Important fix in Ripley isotropic correction.
- Index of repulsion strength for determinantal point process models.
- Nearest neighbours between two point patterns in any number of dimensions.
- More options for handling bad simulation outcomes in envelope().
- Bandwidth selectors warn about extreme values of bandwidth.
- Tessellations on a linear network can now have marks.
- New functions for simulating point processes on a linear network.
- More functions for manipulating tessellations on a linear network.
- mppm accepts case weights.
- Bug fixes and minor improvements.
- Nickname: 'An update which will live in infamy'
NEW FUNCTIONS
- repul
Repulsiveness index for a determinantal point process model.
- reach.kppm
Reach (interaction distance) for a Cox or cluster point process model.
- summary.dppm, print.summary.dppm
Summary method for determinantal point process models.
- nncross.ppx
Nearest neighbours between two point patterns in any number of dimensions.
- uniquemap.matrix
Method for uniquemap for matrices.
- repairNetwork
Detect and repair inconsistencies in internal data
in a linnet or lpp object.
- marks<-.lintess, unmark.lintess
Assign marks to the tiles of a tessellation on a linear network.
- marks.lintess
Extract the marks of the tiles of a tessellation on a linear network.
- tilenames.lintess
Extract the names of the tiles in a tessellation on a linear network
- tilenames<-.lintess
Change the names of the tiles in a tessellation on a linear network
- nobjects.lintess
Count the number of tiles in a tessellation on a linear network
- as.data.frame.lintess
Convert a tessellation on a linear network into a data frame.
- rcelllpp
Simulate the cell point process on a linear network
- rSwitzerlpp
Simulate the Switzer-type point process on a linear network
- intersect.lintess
Form the intersection of two tessellations on a linear network
- chop.linnet
Divide a linear network into tiles using infinite lines
SIGNIFICANT USER-VISIBLE CHANGES
- lintess
New argument 'marks'
Tessellations can now have marks.
- tilenames, tilenames<-
These functions are now generic, with methods for 'tess' and 'lintess'
- mppm
New argument 'weights' specifies case weights for each row of data.
- unstack.lintess
Now handles marks.
- plot.lintess
Modified to display the marks attached to the tiles.
Changed options: style=c("colour", "width", "image").
- as.linfun.lintess
The default function values are the marks.
- print.lintess, summary.lintess, print.summary.lintess
Output now includes information about marks.
- nnfun.ppp, nnfun.psp, nnfun.lpp
New argument 'value' specifies whether to return the index of the
nearest neighbour or the mark value of the nearest neighbour.
- envelope.ppp, envelope.ppm, envelope.kppm, envelope.pp3
New arguments 'rejectNA' and 'silent'.
- envelope.lpp, envelope.lppm
New arguments 'maxnerr', 'rejectNA' and 'silent'.
- plot.psp
New argument 'col' gives control over the colour map
representing the values of marks attached to the segments.
- plot.im
Some warnings are suppressed when do.plot=FALSE.
- plot.linim
New explicit argument 'box' determines whether to plot a bounding box.
Default is now FALSE in all cases.
- Kest, Kinhom, pcf, pcfinhom, edge.Ripley
Calculation of isotropic edge correction for polygonal windows
has changed slightly. Results are believed to be more accurate.
Computation has been accelerated by about 20 percent in typical cases.
- bw.diggle, bw.ppl, bw.lppl, bw.pcf, bw.CvL, bw.voronoi
A warning is issued if the optimal value of the cross-validation criterion
occurs at an endpoint of the search interval.
New argument 'warn'.
- mad.test, dclf.test, dg.test, bits.test
Function values which are infinite, NA or NaN are now ignored
in the calculation (with a warning) instead of causing an error.
Warning messages are more detailed.
- rmhcontrol, rmh
The parameter 'nsave' can now be a vector of integers.
- diagnose.ppm
Accelerated, when type="inverse", for models without a hard core.
- uniquemap.data.frame
Accelerated for some cases.
- vcov.ppm, vcov.mppm
New argument 'nacoef.action' specifies what to do if
some of the fitted coefficients are NA, NaN or Inf.
- Lest, Linhom, Ldot, Lcross, Ldot.inhom, Lcross.inhom
These summary functions now have an explicit argument 'correction'.
Behaviour is unchanged.
- bugfixes
Arguments sinceversion="book" or sincedate="book"
are interpreted to give all bugs reported after publication
of the spatstat book.
- cbind.hyperframe, rbind.hyperframe
The result now retains the row.names of the original arguments.
- print.summary.owin
More information is printed.
- append.psp
Arguments may be NULL.
- as.psp
Now permits a data frame of marks to have only one column,
instead of coercing it to a vector.
BUG FIXES
- as.linnet.psp
Sometimes produced a network with duplicated segments.
[Such objects can be repaired using 'repairNetwork'.]
Fixed.
- edge.Ripley, Kest, Kinhom
Isotropic correction weights for polygonal windows were sometimes incorrect
for small radius 'r' if the polygon contained many small segments
[spotted by Annie Mollie] or if the polygon was very long and thin
[spotted by Nestor Luambua]. Problem arose in spatstat 1.60-0.
Fixed.
- lppm
Did not correctly handle the case where the left-hand side of the formula
is the name of an entry in the 'data' argument.
Fixed.
- plot.lpp
Did not correctly handle the argument 'which.marks'.
Fixed.
- plot.im
Did not correctly handle the argument 'ribargs$at'.
Fixed.
- density.lpp
Sometimes requested a larger value of 'iterMax' but ignored it.
Fixed.
- [.linnet, [.lpp
Crashed if x contained inconsistent internal data
(when index 'j' was a window, and snip=TRUE).
Fixed.
- plot.linim
Crashed if the pixel values were complex numbers.
Fixed.
- plot.linfun
Crashed if the function values were complex numbers.
Fixed.
- integral.linim, mean.linim
Crashed if the image had logical values.
Fixed.
- Re, Im, Arg, Mod, Conj
For pixel images on a linear network (class 'linim')
these operations crashed if the pixel values were complex numbers.
- studpermu.test
Crashed if the hyperframe was very large.
Fixed.
- studpermu.test
Crashed in some cases when the simulated functions were
incompatible with each other, due to the use of different edge
corrections.
Fixed.
- vcov.ppm, print.ppm, summary.ppm
Crashed in some cases if the fitted coefficients were NA.
Fixed.
- quantess.owin, quantess.ppp, quantess.im
Crashed in some cases because the tile labels were not unique.
Fixed.
- plot.pp3
Did not correctly handle graphical arguments ('col', 'pch', 'cex')
if they were vectors [Spotted by Abdollah Jalilian].
Fixed.
- shift.linnet
Generated a spurious warning.
Fixed.
- density.lpp, lixellate
Crashed in some cases when a data point was exactly at a vertex.
[Spotted by Jakob Gulddahl Rasmussen.]
Fixed.
- plot.linim
Crashed (when style="width") if any pixel values were NaN.
Fixed.
- Fest, Jest, Jdot, Jcross, Hest, Iest, rectcontact
envelope() commands using one of these summary functions
crashed sometimes with a message about illegal spacing of 'r' values.
Fixed.
- plot.linnet, plot.psp
Ignored argument 'col' when style="width".
Fixed.
- rshift.psp
Crashed if X had a data frame of marks.
[Spotted by Ute Hahn.]
Fixed.
- Kscaled
Crashed if Ripley's isotropic edge correction was selected
but the translation edge correction was not.
Fixed.
spatstat 1.61-0 (2019-09-22)
OVERVIEW
- We thank Jordan Brown, Tilman Davies and Greg McSwiggan for contributions.
- Fast kernel estimation on a linear network using 2D kernels.
- Nonparametric maximum likelihood estimation of 'rho'.
- Extension of Scott's rule for bandwidth selection.
- Cross-validated bandwidth selection on a linear network.
- More support for character-valued images.
- Random thinning of clumps.
- Bug fixes and minor improvements.
- Nickname: 'Puppy zoomies'
NEW FUNCTIONS
- densityQuick.lpp
Fast kernel estimator of point process intensity on a network
using 2D smoothing kernel.
- bw.scott.iso
Isotropic version of Scott's rule (for point patterns in any dimension).
- data.lppm
Extract the original data point pattern from a fitted model of class 'lppm'.
- rthinclumps
Divide a spatial region into clumps and randomly delete some of them.
- dimnames.hyperframe, dimnames<-.hyperframe
Methods for extracting and changing the 'dimnames' of a hyperframe.
SIGNIFICANT USER-VISIBLE CHANGES
- rhohat
Estimation by nonparametric maximum likelihood is now supported,
assuming the intensity is a monotone function of the covariate.
New options: smoother="increasing" and smoother="decreasing".
- density.lpp
New argument 'distance' offers a choice of different kernel methods.
- bw.scott
Now handles point patterns of any dimension.
New arguments 'isotropic' and 'd'.
- bw.ppl
New argument 'shortcut' allows faster computation.
Additional arguments '...' are now passed to density.ppp.
- [<-.im
New argument 'drop' controls behaviour when indices are missing
as in 'x[] <- value'
- mppm
Now supports 'self-starting' interactions.
- as.im
New argument 'stringsAsFactors' is recognised by many methods.
It enables the creation of character-string-valued images.
- plot.im
Axes are now prevented from extending outside the image rectangle.
- plot.im
New argument 'zap'.
- blur
New argument 'kernel'.
- Smooth.im
New argument 'kernel'.
- quadrat.test
New argument 'df.est'.
- edge.Ripley
Numerical stability has been improved on some platforms.
Results may have changed in marginal cases (e.g. where the circle
of radius r centred at X is tangent to an edge of the polygonal window).
- rownames, rownames<-, colnames, colnames<-
These operations now work for hyperframes.
- quadrat.test
Improved labelling of test when argument 'CR' is given.
- plot.pppmatching
This existing function now has a help file.
New argument 'adjust'.
- solist, is.sob, lintess
Objects of class 'lintess' are now recognised as 2D spatial objects
for the purposes of solist() and is.sob().
- as.linfun.lintess
Functions created by as.linfun.lintess() now generate better output
when the function is printed.
BUG FIXES
- densityVoronoi.lpp
Did not correctly handle patterns containing duplicated points.
Fixed.
- quadrat.test
Argument 'CR' was ignored when method="MonteCarlo".
Fixed.
- localKcross.inhom, localLcross.inhom
Argument lambdaX was ignored.
Fixed.
- "[.linim"
Factor values were erroneously converted to integers, in some cases.
Fixed.
- "[<-.hyperframe"
Did not handle some classes of objects correctly.
Fixed.
- effectfun
In a multitype point process model, effectfun() ignored any
user-specified value of 'marks'.
Fixed.
- as.linim.linfun
Additional arguments (other than spatial coordinates) were ignored.
Fixed.
- plot.solist
Display output was mangled if one entry in the list was
an object that would normally generate multiple panels of graphics,
such as an 'lpp' or 'tess' object with multiple columns of marks,
or a marked 'msr', 'leverage.ppm' or 'influence.ppm' object.
Fixed.
- plot.lpp
Return value was mangled when x had multiple columns of marks.
Fixed.
- colourtable
Crashed in some cases when 'breaks' was given.
Fixed.
- rLGCP
Crashed if 'win' was not a rectangle and 'mu' was not a constant.
Fixed.
- intersect.tess
Crashed if 'Y' was a window object and 'keepmarks=TRUE'.
Fixed.
- envelope.lppm
Crashed if argument 'simulate' was given.
Fixed.
- unstack.solist
Did not correctly handle objects of class 'lintess'.
- unstack.solist
Did not correctly handle objects of class 'tess' if they had multiple
columns of marks.
- plot.pppmatching
Issued spurious warnings about unrecognised plot arguments.
Fixed.
- plot.lintess
Issued spurious warnings about unrecognised plot arguments.
Fixed.
- shift.lpp, rotate.lpp
Issued spurious warnings if argument 'origin' was given.
Fixed.
spatstat 1.60-1 (2019-06-23)
OVERVIEW
- Version number incremented for administrative reasons.
spatstat 1.60-0
OVERVIEW
- We thank Ottmar Cronie, Tilman Davies, Andrew Hardegen,
Tom Lawrence, Robin Milne, Mehdi Moradi, Gopalan Nair,
Tim Pollington and Suman Rakshit for contributions.
- Random thinning and random labelling of spatial patterns
extended to different types of pattern.
- Confidence intervals for multitype K functions.
- Envelopes for balanced two-stage test
- Accelerated some code.
- Minor bug fixes and improvements.
- Package built under R 3.6.0.
- Version nickname: 'Swinging Sixties'
NEW FUNCTIONS
- bits.envelope
Global simulation envelope corresponding to bits.test,
the balanced independent two-stage Monte Carlo test.
- extrapolate.psp
Extrapolate line segments to obtain infinite lines.
- uniquemap
Map duplicate points to unique representatives.
Generic with methods for ppp, lpp, ppx
- uniquemap.data.frame
Map duplicate rows to unique representatives
- localKcross, localLcross, localKdot, localLdot,
localKcross.inhom, localLcross.inhom
Multitype local K functions.
SIGNIFICANT USER-VISIBLE CHANGES
- lohboot
Now works for multitype K functions Kcross, Kdot, Lcross, Ldot,
Kcross.inhom, Lcross.inhom.
- Kinhom, pcfinhom
Leave-one-out calculation is implemented when 'lambda' is a fitted model
of class 'dppm'.
- Kcross.inhom, Kdot.inhom, Lcross.inhom, Ldot.inhom
Leave-one-out calculation is implemented when 'lambdaX' is a fitted model
of class 'dppm'.
- rthin, rlabel
These functions now work on point patterns of all classes
(ppp, lpp, pp3, ppx) and line segment patterns (psp).
- bw.abram
New argument 'smoother' determines how the pilot estimate is computed.
Formal arguments rearranged.
- plot.im
New argument 'riblab'.
- rlabel
New arguments 'nsim' and 'drop'.
- localK, localKinhom
New argument 'rmax'.
- rLGCP
Accelerated.
- anyDuplicated.ppp
Accelerated.
- duplicated.ppp
Accelerated, in most cases.
- simulate.kppm
Accelerated, for LGCP models.
- predict.ppm
Accelerated, for models fitted with method="VBlogi"
- print.rmhmodel
Output improved.
BUG FIXES
- plot.linim, plot.linfun
Not all the entries of 'leg.args' were passed to text.default.
Fixed.
- densityVoronoi.ppp
Did not correctly handle patterns containing duplicated points.
Fixed.
- markcorr
The argument 'correction="none"' did not generate any results.
[Spotted by Tim Pollington.]
Fixed.
- names<-.fv
Did not adjust the plotting formula, so that a subsequent call to plot.fv
would complain about missing variables.
Fixed.
- im.apply
Crashed if 'FUN' returned factor values.
Fixed.
- stienenSet
Crashed if the data contained duplicated points.
Fixed.
- predict.ppm, effectfun
Crashed in some cases, with the message 'ncol(x)=nrow(v) is not TRUE'.
Fixed.
- parres
Crashed in some cases, with the message 'logical subscript too long'.
Fixed.
- dclf.test, mad.test, dg.test, bits.test
Crashed in some cases if the summary function values were infinite or NA.
Fixed.
spatstat 1.59-0 (2019-03-22)
OVERVIEW
- We thank Lucia Cobo Sanchez, Tilman Davies, Maximilian Hesselbarth,
Kassel Hingee, Mehdi Moradi, Suman Rakshit, Jan Sulavik
and Luke Yates for contributions.
- Extensions to adaptive intensity estimators.
- 'Dartboard' tessellation using polar coordinates.
- Performance improvements.
- Minor improvements and bug fixes.
- Version nickname: "J'ai omis les oeufs de caille"
NEW FUNCTIONS
- polartess
Tessellation using polar coordinates.
- bw.abram
Variable bandwidths for adaptive smoothing, using Abramson's Rule.
- densityAdaptiveKernel
Calculates adaptive estimate of point process intensity
using variable-bandwidth kernel estimation.
- densityVoronoi, densityVoronoi.ppp
Calculates adaptive estimate of point process intensity
using tessellation methods. This is an extension of the
old function adaptive.density.
- densityVoronoi.lpp
Voronoi or smoothed Voronoi estimator of intensity
for point pattern on a linear network.
- coords.quad
New method for 'coords', to extract the coordinates of the points
in a quadrature scheme.
- lineartileindex
Low-level function to classify points on a linear network
according to which tile of a tessellation they fall inside.
SIGNIFICANT USER-VISIBLE CHANGES
- latest.news
Now prints news documentation for the current major version, by default.
New argument 'major'.
- quantess
The covariate Z can now be "rad" or "ang" representing polar coordinates.
New argument 'origin' specifies the origin of polar coordinates.
New argument 'eps' controls accuracy of calculation.
- envelope
The argument 'simulate' can now be a function (such as 'rlabel').
The function will be applied repeatedly to the original data Y,
and should yield point patterns of the same kind.
- adaptive.density
This function can now perform adaptive estimation by two methods: either
tessellation-based methods or variable-bandwidth kernel estimation.
The calculations are performed by either 'densityVoronoi' or
'densityAdaptiveKernel'.
- densityVoronoi
This performs the calculations of the old function 'adaptive.density'.
New argument 'fixed' specifies the subsampling.
New argument 'method' allows a choice between the original algorithm
and the recently described 'smoothed Voronoi' estimator.
Default value of 'f' changed to 'f=1'.
- pcf.ppp
Now accepts correction="none".
- pairorient
Default edge corrections now include 'bord.modif'.
- funxy
Functions of class 'funxy' can now be applied to quadrature schemes.
- lohboot
Computation accelerated when the window is a rectangle.
- nncorr, nnmean, nnvario
New argument 'na.action'.
- pp3
New argument 'marks'.
- clusterfit
New argument 'verbose'.
- beachcolours, beachcolourmap
Improved positioning of the yellow colour band.
- linearK, linearpcf, linearKdot, linearKcross, linearpcfcross, linearpcfdot
Computation accelerated for networks which are not connected.
- as.linnet.psp
Computation accelerated.
- as.linfun.lintess
Computation accelerated.
- selfcut.psp
Computation accelerated.
The result now has an attribute "camefrom"
indicating the provenance of each segment in the result.
- bw.stoyan
The rule has been modified so that, if the pattern is empty,
it is now treated as if it contained 1 point,
so that a finite bandwidth value is returned.
- rebound.owin
Now preserves unitnames of the objects.
- rescale.owin, rescale.ppp, rescale.psp
The geometrical type of the window is now preserved in all cases
(previously if the window was polygonal but was equivalent to a rectangle,
the rescaled window was a rectangle).
- shift.im, shift.owin, shift.ppp, shift.psp
More options for the argument 'origin'.
- nnwhich.ppp, nnwhich.default
Accelerated, in the case k > 1.
- is.subset.owin
Improved robustness against numerical error.
- plot.im
Improved behaviour when the pixel values are almost constant.
- Finhom, Ginhom, Jinhom
A warning is issued if bias is likely to occur because of undersmoothing.
New arguments 'warn.bias' and 'savelambda'.
- plot.colourmap
Now handles a colourmap defined on an interval of length zero.
- ewcdf
Computation accelerated.
New arguments 'normalise' and 'adjust'.
The result does not inherit class 'ecdf' if normalise=FALSE.
- spatialcdf
Computation accelerated.
The result does not inherit class 'ecdf' if normalise=FALSE.
- effectfun
New argument 'nvalues'.
- parres
The argument 'covariate' may be omitted if the model involves
only one covariate.
- alltypes
If 'envelope=TRUE' and the envelope computation reaches the
maximum permitted number of errors (maxnerr) in evaluating
the summary function for the simulated patterns, then instead
of triggering a fatal error, the envelope limits will be set to NA.
- simulate.kppm
Additional arguments '...' are now passed to
the function that performs the simulation.
BUG FIXES
- spatialcdf
The argument 'weights' was ignored in some cases.
Fixed.
- ppp
Points inside the window were erroneously rejected as lying outside
the window, if the window was a polygon equivalent to a rectangle
with sides longer than 10^6 units.
Fixed.
- inside.owin
All results were FALSE if the window was
a polygon equivalent to a rectangle
with sides longer than 10^6 units.
Fixed.
- sumouter
Result was incorrect (all entries were zero)
if 'w' was missing and 'y' was given.
Fixed.
- extractbranch.lpp
Point pattern coordinates were sometimes erroneously set to NA.
Fixed.
- beachcolours, beachcolourmap
The number of colours was not always equal to 'ncolours'.
[Spotted by Tilman Davies.]
Fixed.
- is.subset.owin
Sometimes gave the wrong answer for polygonal windows
due to numerical rounding error.
Fixed.
- update.kppm
Crashed if the updating information was a point pattern
and the original model call did not include a formula.
Spotted by Luke Yates.
Fixed.
- incircle, inpoint
Crashed if the window was extremely thin.
Fixed.
- effectfun
Crashed in some obscure cases.
Fixed.
- closepairs.pp3
Crashed if distinct=FALSE and what="all".
Fixed.
- update.ippm
Crashed if the model was fitted using method="logi".
Fixed.
- plot.msr
Crashed sometimes if x was multitype and multiplot=FALSE.
Fixed.
- anova.mppm
Crashed if applied to a single model, unless the current environment
was the global environment.
Fixed.
- lurking.mppm
If 'covariate' was a list of images, the code crashed sometimes
with message 'Fisher information is singular'.
Fixed.
- im
Crashed if 'mat' was a 1-dimensional table (class 'table').
Fixed.
- dirichlet
Crashed if the pattern was empty or contained only 1 point.
Fixed.
- rjitter
Crashed if the pattern contained 0 or 1 points and
the argument 'radius' was not specified.
Fixed.
- quantess.owin
Crashed if Z was a function(x,y).
Fixed.
- quadrat.test
The p-value was NA if one of the observed counts was zero,
for the Cressie-Read tests with CR not equal to 1 or -1.
Fixed.
- quadratcount.ppp
Sometimes issued an incorrect warning that data points were
outside the tessellation, when 'tess' was a tessellation
represented by a pixel image.
Fixed.
- as.linim.linfun
Factor-valued functions were converted to integer-valued images.
Spotted by Suman Rakshit.
Fixed.
- plot.linfun
Did not display factor-valued functions correctly.
Spotted by Suman Rakshit.
Fixed.
- dclf.test, mad.test
Crashed, in rare cases, when applied to an 'envelope' object.
Spotted by Jan Sulavik.
Fixed.
- plot.spatialcdf, plot.ewcdf
A horizontal line was plotted at height 1, even if the CDF was unnormalised.
Fixed.
- plot.tess
The names of the tiles were sometimes re-ordered in the legend.
Fixed.
- rThomas, rMatClust, rCauchy, rVarGamma
If the simulation window was not a rectangle,
the attribute 'Lambda' was a numeric vector, rather than a pixel image.
Fixed.
spatstat 1.58-2 (2019-01-10)
OVERVIEW
- Venn diagram tessellation
- Internal bug fixes.
NEW FUNCTIONS
- venn.tess
Venn diagram tessellation.
spatstat 1.58-1
OVERVIEW
- Bug fixes.
- Version nickname: "Compliment Sandwich"
BUG FIXES
- lpp
Did not correctly detect some situations where the input data are invalid.
Fixed.
- lurking.ppp, lurking.ppm
Did not correctly detect some situations where the input data are invalid.
Fixed.
spatstat 1.58-0
OVERVIEW
- We thank Andrew Bevan, Hamidreza Heydarian and Andrew P Webster
for contributions.
- Mark-mark scatter plot.
- Standard error calculation for inverse-distance weighting
- Minor improvements and extensions.
- Version nickname: 'Drop Bear'
NEW FUNCTIONS
- markmarkscatter
Mark-mark scatterplot
SIGNIFICANT USER-VISIBLE CHANGES
- idw
Standard errors can now be calculated by setting 'se=TRUE'.
- im.apply
Computation accelerated, especially when NA's are absent.
New arguments 'fun.handles.na' and 'check'.
- kppm, dppm, clusterfit
Changed precedence rule for handling the algorithm parameters
in the minimum contrast algorithm. Individually-named arguments
'q,p,rmax,rmin' now take precedence over entries
with the same names in the list 'ctrl'.
- rotmean
Improved algorithm stability
- summary.kppm
Prints more information about algorithm convergence.
- closepairs.pp3, crosspairs.pp3
Argument 'what' can take the value "ijd"
- plot.onearrow
Graphical parameters, specified when the object was created,
are now taken as the defaults for graphical parameters to the plot.
BUG FIXES
- rotmean
When result="im" the resulting image did not have the same dimensions
as the input. [Spotted by Hamidreza Heydarian.]
Fixed.
- rotmean
If argument 'origin' was given, and if result="im" was specified,
the resulting image was wrongly displaced.
Fixed.
- runifpointx
Result was mangled when n=0 or n=1.
Fixed.
spatstat 1.57-1 (2018-11-04)
OVERVIEW
- Bug fixes.
- Version nickname: 'Cartoon Physics'
BUG FIXES
- multiplicity.default
Some entries of the result were incorrectly set to 1.
Fixed.
- anova.ppm
Crashed if adjust=TRUE and the models were fitted with use.gam=TRUE.
Fixed.
spatstat 1.57-0
OVERVIEW
- We thank Corey Anderson, Ryan Arellano, Hadrien Commenges,
Ottmar Cronie, Tilman Davies, Maximilian Hesselbarth, Kassel Hingee,
Tomas Lazauskas, Marie-Colette van Lieshout, Rasmus Waagepetersen
and 'daitakahashi' for contributions.
- Cronie-van Lieshout bandwidth selection.
- Smoothing functions handle non-Gaussian kernels.
- Infinite smoothing bandwidths permitted.
- Positive confidence limits for rhohat.
- Improved bivariate interpolation.
- subset() method for line segment patterns.
- Important bug fixes in rthin and density.ppp
- Minor bug fixes and improvements.
- Version nickname: 'Zombie apocalypse'
NEW FUNCTIONS
- bw.CvL
Cronie-Van Lieshout bandwidth selection for density estimation.
[Contributed by Ottmar Cronie and Marie-Colette van Lieshout.]
- subset.psp
Method for 'subset' for line segment patterns.
SIGNIFICANT USER-VISIBLE CHANGES
- densityfun.ppp, Smoothfun.ppp, Smooth.ppp
These commands now handle non-Gaussian kernels.
- density.ppp, relrisk.ppp, Smooth.ppp, densityfun.ppp, Smoothfun.ppp
Argument 'sigma' can be infinite.
- interp.im
New argument 'bilinear' specifies the choice of interpolation rule.
- rhohat
Methods for rhohat have a new argument 'positiveCI'
specifying whether confidence limits should be positive.
- plot.colourmap
New argument 'increasing' specifies whether the colours are
displayed in order left-to-right/bottom-to-top.
Changed default behaviour for discrete colour maps when vertical=FALSE.
- split.ppx
Argument 'f' can be a logical vector.
- relrisk.ppp
If se=TRUE and at="pixels", the result belongs to class 'solist'.
- imcov, setcov, convolve.im
The name of the unit of length is preserved.
- density.ppp
Slightly accelerated for non-Gaussian kernels.
- bw.scott
The two bandwidth values in the result
now have names ('sigma.x' and 'sigma.y').
- pairdist.default
Now checks whether the data are valid 2-dimensional coordinates.
- pixellate.ppp
New argument 'savemap'
- rtemper
New argument 'track'.
Code runs slightly faster.
- eval.im, eval.linim
New argument 'warn'.
- Kres, Kcom, Gcom, psstG
If any of the calculated weights for the summary function
are infinite or NA, they are reset to zero, with a warning,
instead of a fatal error.
BUG FIXES
- rthin
If P was close to 1, the result was sometimes an empty point pattern
when it should have been identical to X.
[Spotted by Maximilian Hesselbarth.]
Fixed.
- density.ppp
Standard error calculations were incorrect
when sigma was a single numeric value.
The output was equal to 'sqrt(sigma)' times the correct answer.
Fixed.
- density.ppp
Result was incorrect for non-Gaussian kernels when
at="points" and leaveoneout=FALSE.
Fixed.
- density.ppp
Did not pass additional arguments "..." to a user-supplied
kernel function, in some cases.
Fixed.
- as.im.function, as.im.funxy
If the function values were factor values and the window was
not a rectangle, the result was an image with all pixel values NA.
[Spotted by Corey Anderson.]
Fixed.
- plot.funxy
If the function values were factor values and the window was
not a rectangle, the plot was empty.
[Spotted by Corey Anderson.]
Fixed.
- nnorient
Crashed if the border correction did not retain any data points.
[Spotted by Tomas Lazauskas.]
Fixed.
- linim
Crashed in some cases with a message about unitnames.
Fixed.
- density.lpp
Default value of 'dx' was sometimes incorrect.
Fixed.
- rMatClust, rThomas, rCauchy, rVarGamma
Issued a spurious warning about bandwidth selection
when saveLambda=TRUE.
Fixed.
- density.ppp
Issued a spurious warning about bandwidth selection
when 'kernel' was a user-supplied function.
Fixed.
- clusterfield.function
Issued a spurious warning about bandwidth selection.
Fixed.
- relrisk.ppp
Issued a spurious warning if the argument 'case' or 'control'
was given, for a bivariate point pattern.
Fixed.
- superimpose.ppp
If 'W' was a character string or function, the behaviour was
not exactly as described in the help file.
Fixed.
- plot.psp
If the marks were factor values, the colour map was displayed upside down.
Fixed.
- eval.fv
If one of the 'fv' objects included ratio information (class 'rat')
then this was erroneously retained, in some cases.
Fixed.
- linearKcross
Crashed (with a message about a missing value of 'correction')
if there were no pairs of points to count.
Fixed.
- envelope.lpp
Crashed (randomly) when fix.n=TRUE and fix.marks=TRUE.
Fixed.
spatstat 1.56-1 (2018-08-01)
OVERVIEW
- We thank Agustin Lobo for contributions.
- Improvements to infrastructure.
- Bug fixes.
- Version nickname: "Invisible Friend"
NEW FUNCTIONS
- as.im.expression
New method for 'as.im' for expressions.
- flipxy.tess
Method for 'flipxy' for tessellations.
SIGNIFICANT USER-VISIBLE CHANGES
- sdr
This is now a generic function, with a method for class 'ppp'.
- pointsOnLines
The result now has an attribute named "map"
which maps each point to its parent line segment.
- summary.lpp
Improved output.
- intersect.owin
Argument 'fatal' now defaults to FALSE.
- quadrature schemes (class "quad" and "logiquad")
Improved print and summary methods.
BUG FIXES
- cut.lpp
Crashed if the marks were a data frame or hyperframe.
Fixed.
- summary.lpp, print.summary.lpp
Output was garbled if the marks were a data frame or hyperframe.
Fixed.
- integral.linim
Crashed if the function had NA values.
Fixed.
- Tstat
Crashed if ratio=TRUE.
Fixed.
- intersect.owin
Ignored argument 'fatal' in some cases.
[Spotted by Agustin Lobo.]
Fixed.
- plot.tess
Crashed if do.col=TRUE and 'values' was a factor.
Fixed.
- pcf.ppp
Crashed if 'domain' was given and ratio=TRUE.
Fixed.
- "[<-.sparse3Darray"
Crashed if 'value' was one-dimensional
and the indices i, j, k specified a two-dimensional subset of x.
Fixed.
- plot.quad
Crashed if tiles=TRUE for a quadrature scheme
created by quadscheme(method="dirichlet", exact=TRUE).
Fixed.
- bugtable
Crashed if there were no bugs!
Fixed.
- sparse array code
An array bounds violation (segmentation fault) could occur.
Fixed.
- internal code
Numerous internal bugs have been fixed.
spatstat 1.56-0 (2018-06-15)
OVERVIEW
- We thank Sebastian Meyer and Suman Rakshit for contributions.
- Kernel estimate of intensity as a function(x,y)
- Extract discrete and continuous components of a measure.
- Improvements and extensions to leverage and influence code.
- Plot a line segment pattern using line widths.
- Find connected components of each tile in a tessellation.
- Geometrical operations on 'distfun' objects.
- Join vertices in a linear network.
- Distance map and contact distribution for rectangular structuring element.
- An infinite number of infinitesimal bugs has been detected and fixed.
- Version nickname: "Bondi Tram"
NEW FUNCTIONS
- densityfun, densityfun.ppp
Compute a kernel estimate of intensity of a point pattern
and return it as a function of spatial location.
- as.im.densityfun
Convert function(x,y) to a pixel image.
- measureDiscrete, measureContinuous
Extract the discrete and continuous components of a measure.
- connected.tess
Find connected components of each tile in a tessellation
and make a new tessellation composed of these pieces.
- dffit.ppm
Effect change diagnostic DFFIT for spatial point process models.
- shift.distfun, rotate.distfun, reflect.distfun, flipxy.distfun,
affine.distfun, scalardilate.distfun
Methods for geometrical operations on 'distfun' objects.
- rescale.distfun
Change the unit of length in a 'distfun' object.
- plot.indicfun
Plot method for indicator functions created by as.function.owin.
- Smooth.leverage.ppm, Smooth.influence.ppm
Smooth a leverage function or an influence measure.
- integral.leverage.ppm, integral.influence.ppm
Compute the integral of a leverage function or an influence measure.
- mean.leverage.ppm
Compute the mean value of a leverage function.
- rectdistmap
Distance map using rectangular metric.
- rectcontact
Contact distribution function using rectangular structuring element.
- joinVertices
Join specified vertices in a linear network.
SIGNIFICANT USER-VISIBLE CHANGES
- plot.psp
Segments can be plotted with widths proportional to their mark values.
New argument 'style'.
- msr
Infinite and NA values are now detected (if check=TRUE)
and are reset to zero, with a warning.
- leverage.ppm, influence.ppm, dfbetas.ppm
Faster computation in some cases.
- as.im.nnfun, as.im.smoothfun
New argument 'approx' chooses between a fast, approximate algorithm
and a slow, exact algorithm.
- cdf.test
More jittering is applied when jitter=TRUE.
Warnings about tied values should not occur any more.
- plot.im
Improved behaviour when all pixel values are NA.
- plot.tess
Now generates a separate plot panel for each column of marks,
if do.col=TRUE.
New argument 'multiplot'.
- pcfinhom
Now handles correction='good'
- solist
New argument '.NameBase'
- runifpointOnLines, rpoisppOnLines
New argument 'drop'
- plot.studpermutest
This existing function now has a help file.
- bdist.points
Accelerated, for polygonal windows (thanks to Sebastian Meyer).
- linnet
When argument 'edges' is specified, the code now checks whether
any edges are duplicated.
BUG FIXES
- kernel.moment
Result was incorrect for kernel="cosine" and kernel="optcosine".
Fixed.
- "[.msr"
Format was mangled if the subset contained exactly one quadrature point.
Fixed.
- tess
If a list of tiles was given, and the tiles were pixel images or masks,
their pixel resolutions were ignored, and reset to the default 128x128.
Fixed.
- plot.linim
Ignored argument 'legend' when style="colour".
[Spotted by Suman Rakshit.]
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm
Crashed sometimes if the model was fitted by method="logi".
Fixed.
- Smooth.ppp
Crashed with some combinations of the arguments varcov and weights
when X had several columns of marks.
Fixed.
- plot.tess
Crashed sometimes when do.col=TRUE and values=NULL.
Fixed.
- dilation.ppp
Crashed if polygonal=FALSE.
- plot.tess
Ignored the marks of a tessellation defined by a pixel image.
Fixed.
- predict.ppm
Crashed when computing a confidence interval or prediction interval
if 'window' was a tessellation.
Fixed.
- tiles
names(tiles(x)) was not always identical to tilenames(x).
Fixed.
- model.images.lppm
Crashed in many cases.
Fixed.
- model.images.lppm
Names or dimnames were missing in some cases.
Fixed.
- nncross.ppp
Result had the wrong format if npoints(X) = 0 and length(what) = 1.
(Spotted by Sebastian Meyer).
Fixed.
- plot.colourmap
Crashed if the colourmap was defined on an interval of dates or times.
Fixed.
- StraussHard, leverage.ppm, influence.ppm, dfbetas.ppm
Leverage and influence calculations generated an error
when applied to models fitted with the StraussHard interaction.
Fixed.
- "[.ppp"
Crashed if there were several columns of marks,
some of which were factors, and drop=TRUE.
Fixed.
spatstat 1.55-1 (2018-04-05)
OVERVIEW
- We thank Jens Astrom, Ines Moncada, Mehdi Moradi and Nicholas Read
for contributions.
- More support for tessellations.
- Improved support for linear networks.
- Fixed longstanding bug in leverage and influence diagnostics.
- Minor improvements and bug fixes.
- Version nickname: "Gamble Responsibly"
NEW FUNCTIONS
- summary.ssf
Summary method for a spatially sampled function (class 'ssf').
- unstack.tess
Given a tessellation with multiple columns of marks,
take the columns one at a time, and return a list of tessellations,
each carrying only one of the original columns of marks.
SIGNIFICANT USER-VISIBLE CHANGES
- plot.tess
This plot method can now fill each tile with a different colour.
New arguments 'do.col', 'values', 'col' and 'ribargs'.
Old argument 'col' has been renamed 'border' for consistency.
- integral.linim, integral.linfun
Argument 'domain' can now be a tessellation.
- integral.ssf
Argument 'domain' can now be a tessellation.
- as.owin.default
Now accepts a structure with entries named 'xmin,ymin,xmax,ymax'
in any order. This handles objects of class 'bbox' in the 'sf' package.
- as.owin.default
Now detects objects of class "SpatialPolygons"
and issues a more helpful error message.
- pseudoR2.ppm, pseudoR2.lppm
The null model now includes any offset terms, by default.
[Suggested by Jens Astrom.]
New argument 'keepoffset'.
- closepairs.ppp
New argument 'periodic'
- fitted.ppm
New argument 'ignore.hardcore'.
- predict.ppm
New argument 'ignore.hardcore'.
- leverage.ppm, influence.ppm, dfbetas.ppm
Computation has been vastly accelerated for models with Geyer interaction
fitted using isotropic or translation edge corrections.
- leverage.ppm, influence.ppm, dfbetas.ppm
Virtually all models and edge corrections are now supported,
using a "brute force" algorithm. This can be slow in some cases.
- cdf.test
Monte Carlo test runs faster.
- summary.distfun, summary.funxy
Pixel resolution can now be controlled.
- persp.funxy
Improved z-axis label.
- plot.ppp
Improved placement of symbol legend when argument 'symap' is given.
- plot.msr
Changed the default rule for bandwidth for smoothing the density.
BUG FIXES
- nnmark, as.im.ssf
if marks(X) was a matrix rather than a data frame,
the results were completely incorrect (and had completely wrong format).
Fixed.
- predict.mppm
If the model included random effects, and if the library 'MASS' was not loaded,
the predictions were on the log scale (i.e. they were logarithms of the correct values).
[Spotted by Nicholas Read.]
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm
Calculations were slightly incorrect for models with a hard core.
Fixed.
- leverage.ppm
The mean leverage value (shown as a contour line in plot.leverage.ppm)
was slightly incorrect for Gibbs models.
Fixed.
- Ops.msr
If the input data contained an auxiliary pixel image of
the density component of the measure (attribute "smoothdensity")
this image was not updated; it was copied to the output unchanged.
Plots of the resulting measure were incorrect, but calculations
with the measure were correct.
Fixed.
- integral.msr
If the result was a matrix, it was the transpose of the correct answer.
Fixed.
- "[.linim"
The result sometimes had the wrong class.
Fixed.
- "[.linnet"
In calculating L[W] where W is a window, the code ignored
segments of L that crossed W without having a vertex in W.
Fixed.
- nnmap
Crashed if W = NULL.
Fixed.
- density.lpp, nncross.lpp
Crashed sometimes with an obscure message about "z$which".
[Spotted by Ines Moncada.]
Fixed.
- as.im.distfun
Crashed, for the distfun of a point pattern, if approx=FALSE.
Fixed.
- as.solist
Crashed when x was a 'layered' object.
Fixed.
- linnet
Crashed in some trivial cases where there were no points or lines.
Fixed.
spatstat 1.55-0 (2018-01-29)
OVERVIEW
- We thank 'AdriMaz' and Nicholas Read for contributions.
- Lurking variable plot for models fitted to several point patterns.
- Improvements to code for class 'mppm'.
- Improvements to leverage and influence diagnostics.
- Improved summary information for funxy and distfun objects.
- Bug fixes and improvements.
- Removed old warnings and deprecated functions.
- Nickname: "Stunned Mullet"
NEW FUNCTIONS
- contour.leverage.ppm
Method for 'contour' for leverage functions of class 'leverage.ppm'
- lurking
New generic function for lurking variable plots.
- lurking.ppp, lurking.ppm
These are equivalent to the original function 'lurking'.
They are now methods for the new generic 'lurking'.
- lurking.mppm
New method for class 'mppm'
Lurking variable plot for models fitted to several point patterns.
- print.lurk
Prints information about the object returned by the function 'lurking'
representing a lurking variable plot.
- model.matrix.mppm
Method for 'model.matrix' for models of class 'mppm'.
- test.crossing.psp, test.selfcrossing.psp
Previously undocumented functions for testing whether segments cross.
SIGNIFICANT USER-VISIBLE CHANGES
- predict.ppm
Now recognises the arguments 'dimyx' and 'eps' for specifying the
resolution of the grid of prediction points.
- leverage.ppm, dfbetas.ppm
Increased the default resolution of the pixel images.
Spatial resolution can now be controlled by the arguments 'dimyx', 'eps'.
- ppmInfluence
The result now belongs to class 'ppmInfluence', for which there are
methods for 'leverage', 'influence', 'dfbetas' which extract the
desired component.
- plot.leverage.ppm
New argument 'what'.
- persp.leverage.ppm
New arguments 'zlab' and 'what'.
- as.im.leverage.ppm
New argument 'what'.
- summary.funxy, summary.distfun
Printed information now includes a summary of the function values.
- lurking.ppm
Accelerated.
- "[.psp"
Accelerated.
- clf.test, conspire, bounding.box, ksmooth.ppp, mpl, superimposePSP,
eval.hyper, smooth.fv, smooth.ppp, smooth.msr, rtoro, plot.kstest
These deprecated functions have now been removed.
- bermantest
This deprecated function has now been removed.
Use berman.test instead.
- kstest
This deprecated function has now been removed.
Use cdf.test instead.
- plot.ppp
A very old warning, about the interpretation of the mark scale
as the circle diameter, is no longer printed.
BUG FIXES
- nnmap, nnmark
Values were incorrect if the resulting pixel image
had unequal numbers of rows and columns.
Fixed.
- vcov.mppm
Format was incorrect (rows/columns were omitted) in some cases.
Fixed.
- model.matrix.ppm, model.frame.ppm
Values were sometimes incorrect when applied to the result of subfits().
To be precise, if 'fit' was an mppm object fitted to a hyperframe
that included 'design covariates' (covariates that take a constant value
in each row of the hyperframe), and if 'futs <- subfits(fit)', then
model.matrix(futs[[i]]) gave incorrect values in the columns
corresponding to the design covariates.
Fixed.
- model.matrix.ppm
The attribute 'assign' was omitted, in some cases.
Fixed.
- simulate.dppm, simulate.detpointprocfamily
In dimensions higher than 2, the result was shifted so that
it was centred at the origin.
Fixed.
- Smooth.ppp
Crashed if geometric=TRUE and there were several columns of marks.
Fixed.
- simulate.dppm, simulate.detpointprocfamily
Crashed if nsim > 1 and the spatial dimension was not equal to 2.
Fixed.
- plot.leverage.ppm
Contour line was annotated, which was not intended.
Fixed.
- leverage.ppm
The leverage function was oversmoothed, when the model was fitted
with method="logi".
Fixed.
spatstat 1.54-0 (2017-11-21)
OVERVIEW
- We thank Rochelle Constantine, Lily Kozmian-Ledward,
Ian Renner and Leigh Torres for contributions.
- New dataset 'cetaceans'.
- Gamma correction for colour maps and image plots.
- Class 'units' has been renamed 'unitname' to avoid package collision.
- Bug fix in leverage code
- Tighter bounding box for psp, lpp, linnet objects.
- Improved layout in plot.solist
- Tools to increase colour saturation.
- Connected components of a 3D point pattern.
- Accelerated computations on linear networks.
- Accelerated simulation of determinantal point processes.
- Improved printing of 3D point patterns.
- Minor corrections to handling of unitnames.
- Nickname: 'Vacuous Mission Statement'
NEW DATASETS
- cetaceans
Nine replicates of a marine survey in New Zealand,
consisting of recorded sightings of dolphins, whales and other species.
Generously contributed by Lily Kozmian-Ledward, Rochelle Constantine
and Leigh Torres.
NEW FUNCTIONS
- to.saturated
Convert a colour value to the corresponding fully-saturated colour.
- intensity.psp
Compute the average total length of segments per unit area.
- boundingbox.psp
Bounding box for line segment patterns.
This produces a tighter bounding box than the previous default behaviour.
- boundingbox.lpp
Bounding box for point patterns on a linear network.
This produces a tighter bounding box than the previous default behaviour.
- boundingbox.linnet
Bounding box for a linear network.
This produces a tighter bounding box than the previous default behaviour.
- "Frame<-.default"
New default method for assigning bounding frame to a spatial object.
- connected.pp3
Connected components of a 3D point pattern.
- colouroutputs, "colouroutputs<-"
Extract or assign colour values in a colour map.
(Documented a previously-existing function)
SIGNIFICANT USER-VISIBLE CHANGES
- plot.im
New argument 'gamma' supports gamma correction of colour maps.
New argument 'ncolours' specifies the default number of colours.
- colourmap, lut
New argument 'gamma' supports gamma correction of colour maps.
- plot.solist, plot.anylist
New argument 'panel.vpad' controls vertical space for panel title
when equal.scales=FALSE.
- class 'units'
The class 'units' has been renamed 'unitname' to avoid a clash with
other packages.
- unitname
The generic function 'unitname' now returns an object of class 'unitname'.
- print.units, summary.units, print.summary.units, as.character.units,
compatible.units
These methods are now called print.unitname, summary.unitname,
print.summary.unitname, as.character.unitname and compatible.unitname.
- as.units
This function has been renamed 'as.unitname' and now returns
an object of class 'unitname'.
- rescale.units
This method has been renamed 'rescale.unitname' and now returns
an object of class 'unitname'.
- profilepl
New argument 'fast' controls the use of shorcuts.
- reload.or.compute
New argument 'force'.
- pixellate.ppp, pixellate.owin, pixellate.psp
New argument 'DivideByPixelArea'.
- density.psp
New argument 'at' determines locations where the density is evaluated.
- as.solist
as.solist(x) always returns an object of class 'solist',
removing any additional classes.
- lineardirichlet
Accelerated.
- integral.linim
Accelerated.
- "[.ppp", "[.lpp", "[.psp"
In the expression X[W] where W is a window,
if X has a unitname but W does not,
the result now inherits the unitname of X.
- distfun.ppp
New argument 'undef'.
- print.pp3
More informative output when x is marked.
BUG FIXES
- leverage.ppm, influence.ppm, dfbetas.ppm
Calculations were slightly incorrect for models fitted using the
border correction.
Fixed.
- integral.linim
Gave incorrect value in some extreme cases
(where many network segments were shorter than one pixel width).
Fixed.
- update.kppm
Did not function correctly when several additional arguments were given.
Fixed.
- plot.solist
Panel titles were cut off, when equal.scales=FALSE (the default).
Fixed.
- intersection.owin, union.owin, setminus.owin
The result sometimes did not inherit the correct 'unitname'.
Fixed.
spatstat 1.53-2 (2017-10-08)
OVERVIEW
- We thank Christophe Biscio and Rasmus Waagepetersen for contributions.
- Correction to 'lohboot'
- Improvements to ppm and update.ppm
- Bug fixes and minor improvements.
- Nickname: "Quantum Entanglement"
NEW FUNCTIONS
- fitin.profilepl
Extract the fitted interaction from a model fitted by profile likelihood.
SIGNIFICANT USER-VISIBLE CHANGES
- lohboot
Algorithm has been corrected and extended
thanks to Christophe Biscio and Rasmus Waagepetersen.
New arguments 'block', 'basicboot', 'Vcorrection'.
- ppm.ppp, ppm.quad
New argument 'clipwin'
- update.ppm
For the case 'update(model, X)' where X is a point pattern,
if the window of X is different from the original window,
then the model is re-fitted from scratch (i.e. use.internal=FALSE).
- plot.leverage.ppm
A contour line showing the average value of leverage
is now drawn on the colour ribbon, as well as on the main image.
New argument 'args.contour'.
BUG FIXES
- lohboot
Implementation was completely incorrect.
[Spotted and fixed by Christophe Biscio and Rasmus Waagepetersen.]
Fixed.
- update.ppm
Did not always work correctly with formulae that included 'polynom()' terms.
Fixed.
spatstat 1.53-1
OVERVIEW
- We thank Suman Rakshit for contributions.
- Bug fix in plot.linim
- Nickname: "Drongo"
BUG FIXES
- plot.linim
Colour map was mangled if log=TRUE.
Fixed.
spatstat 1.53-0
OVERVIEW
- We thank Tilman Davies and Mehdi Moradi for contributions.
- Numerous bug fixes for linear networks code.
- spatstat now requires the sub-package 'spatstat.data'
which contains the datasets.
- Minor enhancements and bug fixes.
- Nickname: "Tinfoil Hat"
NEW FUNCTIONS
- "[<-.linim"
Subset assignment method for pixel images on a linear network.
- nnfromvertex
Given a point pattern on a linear network,
find the nearest data point from each vertex of the network.
- tile.lengths
Calculate the length of each tile in a tessellation on a network.
- text.ppp, text.lpp, text.psp
Methods for 'text' for spatial patterns.
SIGNIFICANT USER-VISIBLE CHANGES
- datasets
All datasets installed in 'spatstat' have now been moved
into the sub-package 'spatstat.data'. This should not have any effect
on normal use. The 'spatstat.data' package is automatically loaded
when spatstat is loaded, and the datasets are lazy-loaded so that
they are available in the usual way. To list all datasets you now need
to type 'data(package="spatstat.data")'
- nbfires
This dataset now includes information about the different
land and sea borders of New Brunswick.
- rhohat
New argument 'subset' allows computation for a subset of the data.
- predict.lppm
Argument 'locations' can now be an 'lpp' object.
- ewcdf
Argument 'weights' can now be NULL.
- plot.msr
New arguments 'equal.markscale' and 'equal.ribbon'.
- plot.im
The number of tick marks in the colour ribbon can now be controlled
using the argument 'nint' in 'ribargs'.
- plot.symbolmap
New argument 'nsymbols' controls the number of symbols plotted.
- square
Handles a common error in the format of the arguments.
- [.linim
More robust against artefacts.
- [.linnet
More robust against artefacts when the subset index is a pixel mask.
- linim
The image Z is now automatically restricted to the network.
New argument 'restrict'.
- plot.linim
When style="width", negative values are plotted in red (by default).
New argument 'negative.args' controls this.
- plot.linim
New argument 'zlim' specifies the range of values to be mapped.
- Summary.linim
Recognises the argument 'finite' so that range(x, finite=TRUE)
works for a linim object x.
- identify.psp
Improved placement of labels.
Arguments can be passed to text.default to control the plotting of labels.
- as.polygonal
Accelerated when w is a pixel mask.
- density.lpp
Accelerated in the default case.
- Kinhom
Stops gracefully if 'lambda' contains any zero values.
- print.linim
Prints more information.
BUG FIXES
- with.msr
The value of 'atommass' was incorrect, due to a coding error.
Fixed.
- [.linim
Internal data was sometimes corrupted.
Fixed.
- as.linim
The result had incorrect internal format when Window(X) was a mask
and one of the arguments 'eps', 'dimyx', 'xy' was present.
Fixed.
- as.im.im
If W was a rectangle or polygonal window, the pixel resolution of the
result was determined by the spatstat defaults, rather than being
determined by the image argument X. This was contrary to the
rule advertised in help(as.im).
Fixed.
- density.lpp
In the 'slow' case (kernel not Gaussian, or continuous=FALSE),
occasionally a pixel could incorrectly be assigned the value 1.
[Spotted by Mehdi Moradi.]
Fixed.
- "[.solist"
Ignored the "..." arguments in some cases.
Fixed.
- density.lpp
Ignored the resolution arguments 'eps', 'dimyx' in the default case.
Fixed.
- plot.msr
Plotted the panel titles on top of each other, if how="contour".
Fixed.
- contour.im
Plotted the title text at the wrong place when add=TRUE and show.all=TRUE.
Fixed.
- predict.lppm
Crashed if 'locations' was an 'lpp' object.
Fixed.
- plot.ppp
Crashed if the window had height 0 and width 0
and the pattern had several columns of marks.
Fixed.
- plot.solist
Crashed if all panels had windows of height 0 and width 0.
Fixed.
- linearK, linearKinhom, linearpcf, linearpcfinhom
Crashed if the linear network was disconnected and one component
of the network contained fewer than 2 points.
Fixed.
- integral.linim
Crashed in some cases.
Fixed.
- "[.linim"
Crashed in some cases.
Fixed.
spatstat 1.52-1 (2017-08-16)
OVERVIEW
- Bug fix to satisfy the development version of R.
- Nickname: "Apophenia"
SIGNIFICANT USER-VISIBLE CHANGES
- Ops.imlist
Improved the 'names' of the result.
BUG FIXES
- bw.smoothppp
Crashes in R-devel.
Fixed.
spatstat 1.52-0
OVERVIEW
- We thank Nicholas Read, Abdollah Jalilian, Suman Rakshit,
Dominic Schuhmacher and Rasmus Waagepetersen for contributions.
- Important bug fixes.
- Now handles disconnected linear networks.
- Effect function is now available for all types of fitted model.
- A model can be fitted or re-fitted to a sub-region of data.
- More support for measures.
- 'Pool' operations improved.
- Geometric-mean smoothing.
- Changed algorithm defaults in ippm.
- Version nickname: "Rudimentary Lathe"
NEW FUNCTIONS
- as.data.frame.envelope
Extract function data from an envelope object,
including the functions for the simulated data ('simfuns')
if they were saved.
- is.connected, is.connected.default, is.connected.linnet
Determines whether a spatial object consists of
one topologically connected piece, or several pieces.
- is.connected.ppp
Determines whether a point pattern is connected after
all pairs of points closer than distance R are joined.
- hist.funxy
Histogram of values of a spatial function.
- model.matrix.ippm
Method for 'model.matrix' which allows computation of
regular and irregular score components.
- harmonise.msr
Convert several measures (objects of class 'msr')
to a common quadrature scheme.
SIGNIFICANT USER-VISIBLE CHANGES
- Smooth.ppp
New argument 'geometric' supports geometric-mean smoothing.
- Kinhom
New argument 'ratio'.
- linearKinhom, linearpcfinhom
Changed default behaviour when 'lambda' is a fitted model.
New arguments 'update' and 'leaveoneout'.
- linearK, linearKinhom, linearpcf, linearpcfinhom, compilepcf
Ratio calculations are now supported.
New argument 'ratio'.
- effectfun
Now works for 'ppm', 'kppm', 'lppm', 'dppm', 'rppm' and 'profilepl' objects.
- ppm, kppm
The argument 'subset' can now be a window (class 'owin')
specifying the subset of data to which the model should be fitted.
- fitted.lppm
New argument 'leaveoneout' allows leave-one-out computation of fitted value.
- pool.rat
New arguments 'relabel' and 'variance'.
- density.lpp
The return value is a pixel image of class 'linim' in all cases.
- plot.linim, plot.linfun
A scale bar is now plotted when style="width".
New argument 'legend'.
- ippm
Default values for the parameters of the optimisation algorithm (nlm.args)
have changed.
- ippm
The internal format of the result has been extended slightly.
- bind.fv
New argument 'clip'.
- as.im.distfun
New argument 'approx' specifies the choice of algorithm.
- "[.psp"
New argument 'fragments' specifies whether to keep fragments of
line segments that are cut by the new window, or only to retain
segments that lie entirely inside the window.
- predict.rhohat
New argument 'what' determines which value should be calculated:
the function estimate, the upper/lower confidence limits, or the
standard error.
- pool.fv
New arguments 'relabel' and 'variance'
- pool.rat
New argument 'weights'.
- plot.msr
New argument 'massthresh'.
- Ops.msr
Calculations like A+B can now be performed even when the measures A and B
are not defined on the same quadrature scheme.
- density.ppp
New argument 'verbose'.
- bw.pcf
New argument 'verbose'.
- hist.im
New argument 'xname'.
- [.leverage.ppm
New argument 'update'.
- [.layered
Additional arguments '...' are now passed to other methods.
- logLik.ppm
The warning about pseudolikelihood ('log likelihood not available')
is given only once, and is not repeated in subsequent calls,
within a spatstat session.
- kppm
Refuses to fit a log-Gaussian Cox model with anisotropic covariance.
- plot.linim, plot.linfun
The return value has a different format.
Arguments have been renamed and reorganised.
- density.lpp
New argument 'old'.
- ippm
Accelerated.
- Smooth.ppp
Now exits gracefully if any mark values are NA, NaN or Inf.
- timeTaken
Now exits gracefully if there is no timing information.
- nbfires
The unit of length for the coordinates is now specified in this dataset.
BUG FIXES
- bw.pcf
Results were totally incorrect due to a typo.
[Spotted by Abdollah Jalilian and Rasmus Waagepetersen.]
Fixed.
- predict.rho2hat
Results were incorrect for a rho2hat object computed from a point pattern.
Fixed.
- density.ppp
If the smoothing bandwidth was very small (e.g.\ smaller than pixel width),
results were inaccurate if the default resolution was used,
and completely wrong if another resolution was specified.
[Spotted by Dominic Schuhmacher.]
Fixed.
- linearK, linearKinhom, linearpcf, linearpcfinhom, linearKcross,
linearKdot, linearpcfcross, linearpcfdot, linearKcross.inhom,
linearKdot.inhom, linearpcfcross.inhom, linearpcfdot.inhom
Crashed if the network was disconnected.
Fixed.
- crossdist.lpp
Crashed if the network was disconnected.
Fixed.
- countends
Crashed if the network was disconnected.
Fixed.
- model.images.ppm
Crashed for models fitted using 'covfunargs'.
Fixed.
- model.matrix.ppm
Crashed for models fitted using 'covfunargs',
if argument 'Q' was given.
Fixed.
- polynom
Expansion of some polynomials caused an error message
about 'invalid model formula'.
Fixed.
- plot.ppp
The argument 'type="n"' did not suppress plotting of the legend,
for marked point patterns.
Fixed.
- plot.psp
Ignored 'show.all' when 'add=TRUE'.
Fixed.
- intensity.ppm
Result had incorrect 'names' attribute in some cases.
Fixed.
- marks<-.ppx
The assignment marks(X) <- a, where 'a' is a single atomic value,
caused an error if 'X' contained zero points.
Fixed
- model.depends
Crashed when applied to regression models fitted by 'gam',
or point process models fitted by 'ppm' with 'use.gam=TRUE'.
Fixed.
- pool.fv
Crashed sometimes, if the arguments did not have the same set of
column names.
Fixed.
- pool.rat
Crashed with an error message from 'fmt'
if there were more than 20 objects to be pooled.
Fixed.
- linearK
The 'theo' column was missing if npoints(X) < 2 and correction="Ang".
Fixed.
- model.matrix.ppm
Result was malformed if the model was fitted with 'use.gam=TRUE'.
Fixed.
- effectfun
Crashed if 'covname' was omitted,
if the model was fitted with 'use.gam=TRUE'.
Fixed.
- nncross.lpp
Result had incorrect format if Y was empty, in some cases.
Fixed.
- linearKinhom
Plot label for y axis was incorrect.
[Spotted by Suman Rakshit.]
Fixed.
- plot.solist
If the entries were 'linim' objects, they were plotted using image()
so arguments like 'style="w"' were ignored.
Fixed.
- as.ppp.data.frame
Crashed if X was an object of class 'tbl_df' from the dplyr package.
Fixed.
- plot.lpp
Crashed if there were multiple columns of marks.
Fixed.
spatstat 1.51-0 (2017-05-08)
OVERVIEW
- We thank Greg McSwiggan, Mehdi Moradi and Tammy L Silva for contributions.
- New fast algorithm for kernel smoothing on a linear network.
- Leverage and influence diagnostics extended to Poisson/Gibbs models
fitted by logistic composite likelihood.
- Two-stage Monte Carlo test.
- Dirichlet/Voronoi tessellation on a linear network.
- Thinning of point patterns on a linear network.
- More support for functions and tessellations on a linear network.
- Improvements and bug fixes.
- Version nickname: 'Poetic Licence'
NEW FUNCTIONS
- bits.test:
Balanced Independent Two-Stage Monte Carlo test,
an improvement on the Dao-Genton test.
- lineardirichlet
Computes the Dirichlet-Voronoi tessellation associated with a
point pattern on a linear network.
- domain.lintess, domain.linfun
Extract the linear network from a 'lintess' or 'linfun' object.
- summary.lintess
Summary of a tessellation on a linear network.
- clicklpp
Interactively add points on a linear network.
- envelopeArray
Generate an array of envelopes using a function that returns 'fasp' objects.
SIGNIFICANT USER-VISIBLE CHANGES
- density.lpp
New fast algorithm (up to 1000 times faster) for the default case
where kernel="gaussian" and continuous=TRUE.
Generously contributed by Greg McSwiggan.
- leverage.ppm, influence.ppm, dfbetas.ppm
These methods now work for models that were fitted by logistic
composite likelihood (method='logi').
- rthin
Argument X can now be a point pattern on a linear network (class 'lpp').
- fitted.ppm
New option: type = "link"
- update.kppm
New argument 'evaluate'.
- integral.linfun
New argument 'delta' controls step length of approximation to integral.
- as.linim.default
New argument 'delta' controls spacing of sample points in internal data.
- as.linfun.lintess
New argument 'values' specifies the function value for each tile.
New argument 'navalue'.
BUG FIXES
- leverage.ppm, influence.ppm, dfbetas.ppm
Results for Gibbs models were incorrect due to a mathematical error.
(Results for Poisson models were correct).
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm, ppmInfluence
Calculations were incorrect for a Geyer model fitted using
an edge correction other than "border" or "none".
Fixed.
- step, kppm, update.kppm
'step' did not work for kppm objects in some cases
due to a scoping problem in update.kppm.
Fixed.
- improve.kppm
Crashed if the window was not a rectangle.
Fixed.
- pcf.ppp, pcfinhom
Crashed if kernel="epa" rather than "epanechnikov".
Fixed.
- alltypes
Crashed if envelope=TRUE and reuse=FALSE.
Fixed.
- pairdist.lpp, nndist.lpp, nnwhich.lpp, nncross.lpp
Crashed if the network was disconnected.
Fixed.
- as.im.linim, as.linim.linim
Additional arguments such as 'eps' and 'dimyx' were ignored.
Fixed.
- as.im.default
Arguments 'eps and 'xy' were ignored if X was a single numeric value.
Fixed.
- 'timed' class
Printing of these objects did not work in some locales.
Fixed.
- runifpoint
Ignored 'drop' argument if the window was a rectangle.
Fixed.
spatstat 1.50-0 (2017-03-23)
OVERVIEW
- We thank Richard Cotton, Adrian Heyner, Abdollah Jalilian,
Dominic Schuhmacher and Rasmus Waagepetersen for contributions.
- spatstat now 'Imports' the package 'spatstat.utils'.
- Bandwidth selection for pair correlation function.
- Improvements and bug fixes.
- Version nickname: 'Bunyip Aristocracy'
NEW PACKAGE STRUCTURE
- spatstat is being split into several sub-packages, to satisfy
the requirements of CRAN. This should not affect the user:
existing code will continue to work in the same way.
Currently there are two sub-packages, called 'spatstat.utils'
and 'spatstat'. Typing 'library(spatstat)' will load the familiar
'spatstat' package which can be used as before, and will silently
import the 'spatstat.utils' package. The 'spatstat.utils' package
contains utility functions that were originally written for 'spatstat':
they were undocumented internal functions in 'spatstat', but are now
documented and accessible in a separate package because they may be
useful for other purposes. To access these functions, you need to
type 'library(spatstat.utils)'.
NEW FUNCTIONS
- bw.pcf
Bandwidth selection for pair correlation function.
Original code contributed by Abdollah Jalilian and Rasmus Waagepetersen.
- grow.box3
Expand a three-dimensional box.
SIGNIFICANT USER-VISIBLE CHANGES
- as.owin
Now refuses to convert a 'box3' to a two-dimensional window.
- pixellate.ppp
If the pattern is empty, the result is an integer-valued image
(by default) for consistency with the results for non-empty patterns.
- ppp
If the coordinate vectors x and y contain NA, NaN or infinite values,
these points are deleted with a warning, instead of causing a fatal error.
- ppm
Argument 'interaction' can now be a function that makes an interaction,
such as Poisson, Hardcore, MultiHard.
- pcf, pcfinhom
New argument 'close' for advanced use.
- runifpointx, rpoisppx
New argument 'drop'.
- shapley, ponderosa
In these installed datasets, the functions shapley.extra$plotit
and ponderosa.extra$plotit have changed slightly (to accommodate the
dependence on the package spatstat.utils).
- kppm
Improved printed output.
BUG FIXES
- rMaternI, rMaternII
If 'win' was a three-dimensional box of class 'box3',
the result was a two-dimensional point pattern.
[Spotted by Adrian Heyner.]
Fixed.
- rmhmodel.ppm, simulate.ppm
Crashed when applied to a fitted Lennard-Jones model.
[Spotted by Dominic Schuhmacher.]
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm
Crashed when applied to some hard-core models.
Fixed.
- "[.ppx"
The format of the result was slightly malformed
if exactly one point was selected.
Fixed.
- unmark.lpp, marks<-.lpp
The result had class c("lpp", "lpp", "ppx") instead of c("lpp", "ppx").
Fixed.
spatstat 1.49-0 (2017-02-08)
OVERVIEW
- We thank Tilman Davies, Kassel Hingee, Abdollah Jalilian,
Brian Ripley and Dominic Schuhmacher for contributions.
- spatstat now 'Suggests' the package 'fftwtools'.
- Operations on signed measures.
- Operations on lists of pixel images.
- Improved pixellation of point patterns.
- Stieltjes integral extended.
- Subset operators extended.
- Greatly accelerated 'rmh' when using 'nsave'
- Some computations accelerated.
- Size of namespace reduced, for efficiency.
- Bug fixes.
- Version nickname: 'So-Called Software'
NEW DEPENDENCIES
- fftwtools
spatstat now 'Suggests' the package 'fftwtools'.
This package provides a very fast implementation of
the Fast Fourier Transform, leading to much faster computation
in the spatstat functions 'density.ppp', 'relrisk.ppp', 'convolve.im',
'blur', 'scan.test' and many other functions.
The 'fftwtools' package requires the external software library 'fftw'.
We strongly recommend installing this library if possible.
NEW FUNCTIONS
- hexagon, regularpolygon
Create regular polygons.
- Ops.msr
Arithmetic operations for measures.
- Math.imlist, Ops.imlist, Summary.imlist, Complex.imlist
Arithmetic operations for lists of pixel images.
- measurePositive, measureNegative, measureVariation, totalVariation
Positive and negative parts of a measure, and variation of a measure.
- as.function.owin
Convert a spatial window to a function (x,y), the indicator function.
- as.function.ssf
Convert an object of class 'ssf' to a function(x,y)
- as.function.leverage.ppm
Convert an object of class 'leverage.ppm' to a function(x,y)
SIGNIFICANT USER-VISIBLE CHANGES
- stieltjes
Argument 'M' can be a stepfun object (such as an empirical CDF).
- quantile.ewcdf
The function is now normalised to the range [0,1]
before the quantiles are computed.
This can be suppressed by setting normalise=FALSE.
- pixellate.ppp
New arguments 'fractional' and 'preserve' for more accurate discretisation.
- "[.layered"
Subset index i can now be an 'owin' object.
- "[.solist"
Subset index i can now be an 'owin' object.
- plot.solist, plot.imlist, plot.anylist
Result is now an (invisible) list containing the result
from executing the plot of each panel.
- ppp
New argument 'checkdup'.
- Summary.im
Argument 'na.rm' is no longer ignored.
- cdf.test
The methods for classes ppp, ppm, lpp, lppm, slrm
have a new argument 'interpolate'.
- as.solist
The argument x can now be a spatial object;
as.solist(cells) is the same as solist(cells).
- bw.diggle, bw.ppl, bw.relrisk, bw.smoothppp
These functions now extract and store the name of the unit of length
from the point pattern dataset. When the bandwidth selection criterion
is plotted, the name of the unit of length is shown on the x-axis.
- polynom
This function now has a help file.
- rmhcontrol
New parameter 'pstage' determines when to generate random proposal points.
- rmh
Accelerated, in the case where multiple patterns are saved using 'nsave'.
- bdist.pixels
Accelerated for polygonal windows. New argument 'method'.
- spatstat namespace
The namespace of the spatstat package has been shortened
(by internally registering the native routines) which should
make the package run faster.
- sum.im, range.im, max.im, min.im
These functions have been removed, as they are now subsumed in Summary.im.
BUG FIXES
- plot.msr
If one of 'nrows' or 'ncols' was specified, but not both,
an obscure error occurred.
Fixed.
- plot.solist, plot.imlist, plot.anylist
Crashed if 'nrows' and 'ncols' were given values implying
that some rows or columns would not contain any plots.
Fixed.
- as.ppp.lpp
Crashed if there was more than one column of marks.
Fixed.
- has.close.pp3
Results were incorrect, or a crash occurred, when argument 'Y' was given.
Fixed.
- rmpoispp
If 'lambda' was a list of images, 'names(lambda)' was ignored,
rather than serving as the default value of 'types'.
Fixed.
- bugfixes
Output was garbled, in rare cases.
Fixed.
- kppm
Result was malformed when clusters="VarGamma" and method="clik2".
Spotted by Abdollah Jalilian.
Fixed.
- QQversion
Plotting labels were malformed.
Fixed.
spatstat 1.48-0 (2016-12-22)
OVERVIEW
- We thank Kim Colyvas, Yongtao Guan, Gopalan Nair,
Nader Najari, Suman Rakshit, Ian Renner and Hangsheng Wang
for contributions.
- Sufficient Dimension Reduction for point processes.
- Alternating Gibbs Sampler for point process simulation.
- Intensity approximation for area-interaction and Geyer models.
- New class of spatially sampled functions.
- ROC and AUC extended to other types of point patterns and models.
- More support for linear networks.
- More support for infinite straight lines.
- Simulation of 'rhohat' objects.
- Kernel smoothing accelerated.
- Methods for 'head' and 'tail' for spatial patterns.
- More low-level functionality.
- Improvements and bug fixes.
- spatstat now has more than 1000 help files.
- Nickname: 'Model Prisoner'
NEW CLASSES
- ssf
Class of spatially sampled functions.
NEW FUNCTIONS
- sdr, dimhat
Sufficient Dimension Reduction for point processes.
Matlab code contributed by Yongtao Guan, translated by Suman Rakshit.
- rags, ragsAreaInter, ragsMultiHard
Alternating Gibbs Sampler for point processes.
- psib
Sibling probability (index of clustering strength in a cluster process).
- bugfixes
List all bug fixes in recent versions of a package.
- roc.kppm, roc.lppm, roc.lpp
Methods for 'roc' (receiver operating characteristic curve)
for fitted models of class 'kppm' and 'lppm'
and point patterns of class 'lpp'
- auc.kppm, auc.lppm, auc.lpp
Methods for 'auc' (area under the ROC curve)
for fitted models of class 'kppm' and 'lppm'
and point patterns of class 'lpp'
- rlpp
Random points on a linear network with a specified probability density.
- cut.lpp
Method for 'cut' for point patterns on a linear network.
- crossing.linnet
Find crossing points between a linear network and another set of lines.
- ssf
Create a spatially sampled function
- print.ssf, plot.ssf, contour.ssf, image.ssf
Display a spatially sampled function
- as.im.ssf, as.ppp.ssf, marks.ssf, marks<-.ssf, unmark.ssf, [.ssf, with.ssf
Manipulate data in a spatially sampled function
- Smooth.ssf
Smooth a spatially sampled function
- integral.ssf
Approximate integral of spatially sampled function
- simulate.rhohat
Generate a Poisson random point pattern with intensity that is
a function of a covariate, given by a 'rhohat' object.
- head.ppp, head.ppx, head.psp, head.tess,
tail.ppp, tail.ppx, tail.psp, tail.tess
Methods for 'head' and 'tail' for spatial patterns.
- as.data.frame.tess
Convert a tessellation to a data frame.
- timeTaken
Extract the timing data from a 'timed' object or objects.
- rotate.infline, shift.infline, reflect.infline, flipxy.infline
Geometrical transformations for infinite straight lines.
- whichhalfplane
Determine which side of an infinite line a point lies on.
- points.lpp
Method for 'points' for point patterns on a linear network.
- pairs.linim
Pairs plot for images on a linear network.
- has.close
Faster way to check whether a point has a close neighbour.
- closetriples
Low-level function to find all close triples of points.
- matrixpower, matrixsqrt, matrixinvsqrt
Raise a matrix to any power.
SIGNIFICANT USER-VISIBLE CHANGES
- intensity.ppm
Intensity approximation is now available for the Geyer saturation process
and the area-interaction process (results of research with Gopalan Nair).
- envelope.lpp, envelope.lppm
New arguments 'fix.n' and 'fix.marks' allow envelopes to be computed
using simulations conditional on the observed number of points.
- "[.im"
The subset index "i" can now be a linear network (object of class 'linnet').
The result of "x[i, drop=FALSE]" is then a pixel image of class 'linim'.
- cut.ppp
Argument z can be "x" or "y" indicating one of the spatial coordinates.
- rThomas, rMatClust, rCauchy, rVarGamma, rPoissonCluster, rNeymanScott
New argument 'saveparents'.
- lintess
Argument 'df' can be missing or NULL,
resulting in a tesellation with only one tile.
- lpp
X can be missing or NULL, resulting in an empty point pattern.
- plot.lintess
Improved plot method, with more options.
- rpoisline
Also returns information about the original infinite random lines.
- density.ppp, Smooth.ppp
Accelerated.
- density.psp
New argument 'method' controls the method of computation.
New faster option 'method="FFT"'
- nndist.lpp
Accelerated.
BUG FIXES
- F3est
Estimates of F(r) for the largest value of r were wildly incorrect.
Fixed.
- clip.infline
Results were incorrect unless the midpoint of the window
was the coordinate origin.
Fixed.
- integral.linim
Results were inaccurate if many of the segment lengths were
shorter than the width of a pixel.
Fixed.
- predict.lppm
Bizarre error messages about 'class too long' or 'names too long'
occurred if the model was multitype.
Fixed.
- superimpose
Point patterns containing 0 points were ignored
when determining the list of possible marks.
Fixed.
- chop.tess
Vertical lines were not handled correctly
with pixellated tessellations.
Fixed.
- timed
Argument 'timetaken' was ignored.
Fixed.
- ppm
Crashed if method="logi" and the 'covariates' were a data frame.
[Spotted by Kim Colyvas and Ian Renner.]
Fixed.
- rpoislpp, runiflpp
Crashed if nsim > 1.
Fixed.
- rpoisline
Crashed if zero lines were generated.
Fixed.
- model.frame.ppm
Crashed if the original model was fitted to a data frame of covariates
and there were NA's amongst the covariate values.
[Spotted by Kim Colyvas.]
Fixed.
- any, all
When applied to pixel images (objects of class 'im') the result
was sometimes NA when a finite value should have been returned.
Fixed.
- predict.rhohat
When the original data were on a linear network,
the result of predict.rhohat did not belong to the correct class 'linim'.
Fixed.
spatstat 1.47-0 (2016-10-13)
OVERVIEW
- We thank Marcel Austenfeld, Guy Bayegnak, Tilman Davies, Cenk Icos,
Jorge Mateu, Frederico Mestre, Mehdi Moradi, Virginia Morera Pujol,
Suman Rakshit and Sven Wagner for contributions.
- Non-Gaussian smoothing kernels.
- Important bug fix in linearK, linearpcf
- Changed internal format of linnet and lpp objects.
- Faster computation in linear networks.
- Bias correction techniques.
- Bounding circle of a spatial object.
- Minkowski sum also applicable to point patterns and line segment patterns.
- Option to plot marked points as arrows.
- Kernel smoothing accelerated.
- Workaround for bug in some graphics drivers affecting image orientation.
- Bug fixes and improvements.
- Version nickname: 'Responsible Gambler'
NEW FUNCTIONS
- anyNA.im
Method for 'anyNA' for pixel images.
- bc
Bias correction (Newton-Raphson) for fitted model parameters.
See also 'rex'.
- boundingcircle, boundingcentre
Find the smallest circle enclosing a window or point pattern.
- "[.linim"
Subset operator for pixel images on a linear network.
- mean.linim, median.linim, quantile.linim
The mean, median, or quantiles of pixel values in a
pixel image on a linear network.
- rex
Richardson extrapolation for numerical integrals and
statistical model parameter estimates.
- weighted.median, weighted.quantile
Median or quantile of numerical data with associated weights.
SIGNIFICANT USER-VISIBLE CHANGES
- linear networks
The internal format of a 'linnet' (linear network) object
has been changed. Existing datasets of class 'linnet' and 'lpp'
are still supported. However, computation will be faster if they
are converted to the new format. To convert a linnet object L
to the new format, use L <- as.linnet(L). To convert an lpp object X
to the new format, use X <- as.lpp(X).
- density.ppp, Smooth.ppp
New argument 'kernel' allows the user to specify the smoothing kernel.
- density.ppp, Smooth.ppp
Argument 'weights' can now be a pixel image.
- MinkowskiSum, %(+)%
Now accepts arguments which are point patterns or line segment patterns
as well as windows.
- plot.im
New argument 'workaround' to avoid a bug in some device drivers
that causes the image to be displayed in the wrong spatial orientation.
[Thanks to Marcel Austenfeld for drawing attention to this.]
- sumouter
New argument 'y' allows computation of asymmetric outer products.
- linearKinhom, linearpcfinhom
New argument 'normpower'.
- rmh.default, rmh.ppm
New arguments 'nsim', 'saveinfo'.
- symbolmap, plot.ppp, plot.lpp
New option: shape="arrows"
- rcellnumber
New argument 'mu'.
- lengths.psp
New argument 'squared'.
- plot.linfun
Now passes arguments to the function being plotted.
- as.linnet.psp
If the line segment pattern has marks, then the resulting linear network
also carries these marks in the $lines component.
- summary.owin, summary.im
The fraction of frame area that is occupied by the window/image
is now reported.
- density.ppp, Smooth.ppp
Computation accelerated by about 15%
in the case where at='points' and kernel='gaussian'.
- linearK, linearpcf
Accelerated by about 40%.
- pixellate.ppp
Accelerated in the case where weights are given
- density.ppp
Accelerated in the cases where weights are given or 'diggle=TRUE'
- dilation.ppp
Improved geometrical accuracy.
Now accepts arguments to control resolution of polygonal approximation.
- discs
New argument 'npoly'.
Accelerated in some cases.
- plot.pp3
New arguments 'box.front', 'box.back' control plotting of the box.
- grow.rectangle
New argument 'fraction'.
- nnfun.lpp
New argument 'k'.
- bw.ppl
New argument 'sigma'.
- lppm
New argument 'random' controls placement of dummy points.
- rhohat.lpp
New argument 'random' controls placement of dummy points.
- quadrat.test.ppm
Accelerated in the case where the original window is a rectangle.
- kppm, mincontrast, cauchy.estpcf, lgcp.estpcf, matclust.estpcf,
thomas.estpcf, vargamma.estpcf
A warning about infinite values of the summary function
no longer occurs when the default settings are used.
- circumradius
This function is now deprecated, in favour of 'boundingradius'
- print.quad
More information is printed.
BUG FIXES
- linearK, linearpcf, and relatives:
These functions were sometimes greatly underestimated
when the network had segments shorter than 10 coordinate units.
[Bug introduced in spatstat 1.44-0, december 2015.]
Fixed.
- integral.linim, integral.linfun
Results were slightly inaccurate because of a bias in the
distribution of sample points.
[Bug introduced in spatstat 1.41-0, february 2015.]
Fixed.
- intensity.ppm
Result was incorrect for Gibbs models if the model was *exactly*
equivalent to a Poisson process (i.e. if all interaction
coefficients were exactly zero).
[Bug introduced in spatstat 1.28-1, june 2012.]
Fixed.
- rSSI
Sometimes terminated prematurely.
[Spotted by Frederico Mestre.]
Fixed.
- perspPoints
Crashed if the image Z contained NA
(i.e. if Z was only defined on a subset of the bounding frame).
Spotted by Guy Bayegnak.
Fixed.
- plot.ppp, plot.lpp
Crashed if the argument 'shape' was given.
Fixed.
- plot.kppm
Crashed if the model was not fitted by minimum contrast.
Fixed.
- superimpose
Crashed if the argument was a 'solist' containing line segment patterns.
Fixed.
- Jest
Crashed sometimes, depending on the shape of the observation window.
[Spotted by Cenk Icos.]
Fixed.
- plot.studpermutest
Crashed when the summary statistic was a multitype pair correlation
function or multitype K function. [Spotted by Sven Wagner.]
Fixed.
- pool.anylist
Crashed with a message about buffer size,
if the list was longer than about 100 items.
Fixed.
- diagnose.ppm, plot.diagppm
Crashed in some cases when cumulative=FALSE.
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm
Crashed sometimes with a message about wrong replacement length.
[Spotted by Virginia Morera Pujol.]
Fixed.
- as.linnet.psp
Crashed with marked segment patterns, if any segments were very short.
[Spotted by Suman Rakshit.]
Fixed.
- stieltjes
Returned NA if some values of f were not finite.
Fixed.
- plot.symbolmap
If a new plot window was initialised, it was sometimes too small
to contain the geometric figures (circles, squares etc) in the symbol map.
Fixed.
- plot.ppp, plot.im
Ignored xlim, ylim.
Fixed.
- rhohat.lpp
Ignored nd, eps.
Fixed.
- nnfun.lpp
Print method gave incorrect information about the point pattern.
Fixed.
- "[.fv"
The default plot formula was not updated.
Fixed.
- fitted.ppm
The result was sometimes a 1-dimensional array rather than a numeric vector.
Fixed.
spatstat 1.46-1 (2016-07-08)
OVERVIEW
- Important bug fix.
- Version nickname: 'Spoiler Alert'
BUG FIXES
- density.ppp, Smooth.ppp
The results of density(X, at="points") and Smooth(X, at="points")
were incorrect in some cases. The contribution from the
left-most data point (the point with the smallest x coordinate)
was omitted. [Bug introduced in spatstat 1.26-0, April 2012.]
Fixed.
spatstat 1.46-0
OVERVIEW
- We thank Corey Anderson and Sebastian Meyer for contributions.
- spatstat now depends on R 3.3.0 or later.
- Improvements to inhomogeneous multitype K and L functions.
- Variance approximation for pair correlation function.
- Leverage and influence for multitype point process models.
- Functions for extracting components of vector-valued objects.
- Important bug fix in Smooth.ppp
- Minor improvements and bug fixes.
- Version nickname: 'Multidimensional Toothbrush'
NEW FUNCTIONS
- split.msr
Decompose a measure into parts.
- unstack.msr
Decompose a vector-valued measure into its component measures.
- unstack.ppp, unstack.psp, unstack.lpp
Given a spatial pattern with several columns of marks,
separate the columns and return a list of spatial patterns,
each having only one column of marks.
- kernel.squint
Integral of squared kernel, for the kernels used in density estimation.
SIGNIFICANT USER-VISIBLE CHANGES
- Kcross.inhom, Kdot.inhom, Kmulti.inhom, Ldot.inhom, Lcross.inhom
These functions now allow intensity values to be given by
a fitted point process model.
New arguments 'update', 'leaveoneout', 'lambdaX'.
- diagnose.ppm
Infinite values of 'rbord' are now ignored and treated as zero.
This ensures that diagnose.ppm has a sensible default
when the fitted model has infinite reach.
- pcf.ppp
Now calculates an analytic approximation to the variance of
the estimate of the pair correlation function (when var.approx=TRUE).
Now returns the smoothing bandwidth used, as an attribute of the result.
- plot.ppp
When 'clipwin' is given, any parts of the boundary of the window of x
that lie inside 'clipwin' will also be plotted.
- plot.msr
Now handles multitype measures.
New argument 'multiplot'.
- plot.anylist
If a list entry x[[i]] belongs to class 'anylist', it will be expanded
so that each entry x[[i]][[j]] will be plotted as a separate panel.
- influence.ppm, leverage.ppm
These can now be applied to multitype point process models
and the results can be plotted.
- plot.influence.ppm, plot.leverage.ppm
New argument 'multiplot'.
- plot.anylist, plot.solist, plot.listof
New arguments panel.begin.args, panel.end.args
- influence.ppm, leverage.ppm, dfbetas.ppm
For Gibbs models, memory usage has been dramatically reduced,
so the code can handle larger datasets and finer quadrature schemes.
BUG FIXES
- Smooth.ppp
Results were incorrect when at='points' and leaveoneout=FALSE.
[Bug introduced in spatstat 1.20-5, October 2010.]
Fixed.
- funxy
Did not correctly handle one-line functions:
the resulting objects evaluated the wrong function in some cases.
[Spotted by Sebastian Meyer. Bug introduced in spatstat 1.45-0]
Fixed.
- mppm
Did not recognise the variable 'marks' in a formula.
Fixed.
- Smooth.ppp, bw.smoothppp
Crashed if X had two columns of marks and one column was constant.
[Bug introduced in spatstat 1.38-0, October 2014]
Fixed.
- Smooth.ppp
Results for 'at="points"' were garbled, for some values of 'sigma',
if X had more than one column of marks.
[Bug introduced in spatstat 1.38-0, October 2014]
Fixed.
- plot.layered
Crashed if one layer was a point pattern with several columns of marks.
Fixed.
- plot.ppm
Sometimes gave a spurious warning about a singular matrix.
Fixed.
- setminus.owin
Gave wrong or strange answer if the correct answer was empty.
Fixed.
- parameters.dppm
Crashed, due to a typo.
Fixed.
- progressreport
Crashed if n = 1.
Fixed.
spatstat 1.45-2 (2016-05-09)
OVERVIEW
- We thank Ottmar Cronie, Virginia Morera Pujol,
Sven Wagner and Marie-Colette van Lieshout for contributions.
- Recursive-partition point process models.
- Minkowski sum, morphological dilation and erosion with any shape.
- Important bug fix in spatial CDF tests.
- More bug fixes for replicated patterns.
- Simulate a model fitted to replicated point patterns.
- Inhomogeneous multitype F and G functions.
- Summary functions recognise correction="all"
- Leverage and influence code handles bigger datasets.
- More support for pixel images.
- Improved progress reports.
- New dataset 'redwood3'
- spatstat now Depends on the package 'rpart'
- Version nickname: 'Caretaker Mode'
NEW DATASETS
- redwood3
A more accurate version of the 'redwood' data.
NEW FUNCTIONS
- as.im.data.frame
Build a pixel image from a data frame of coordinates and pixel values.
- covering
Cover a window using discs of a given radius.
- dilationAny, erosionAny, %(-)%
Morphological dilation and erosion by any shape.
- FmultiInhom, GmultiInhom
Inhomogeneous multitype/marked versions of the summary functions Fest, Gest.
- kernel.moment
Moment or incomplete moment of smoothing kernel.
- MinkowskiSum, %(+)%
Minkowski sum of two windows: A %(+)% B, or MinkowskiSum(A,B)
- nobjects
New generic function for counting the number of 'things' in a dataset.
There are methods for ppp, ppx, psp, tess.
- parameters.interact, parameters.fii
Extract parameters from interpoint interactions.
[These existing functions are now documented.]
- ppmInfluence
Calculate leverage.ppm, influence.ppm and dfbetas.ppm efficiently.
- rppm, plot.rppm, predict.rppm, prune.rppm
Recursive-partition point process models
- simulate.mppm
Simulate a point process model fitted to replicated point patterns.
- update.interact
Update the parameters of an interpoint interaction.
[This existing function is now documented.]
- where.max, where.min
Find the spatial location(s) where a pixel image achieves its
maximum or minimum value.
SIGNIFICANT USER-VISIBLE CHANGES
- cdf.test.mppm
Now handles Gibbs models.
Now recognises covariate="x" or "y".
- leverage.ppm, influence.ppm, dfbetas.ppm
For Gibbs models, memory usage has been dramatically reduced,
so the code can handle larger datasets and finer quadrature schemes.
- plot.im
Now handles complex-valued images.
- connected.im
Now handles a logical-valued image properly.
- qqplot.ppm
Argument 'expr' can now be a list of point patterns,
or an envelope object containing a list of point patterns.
- as.layered
Default method now handles a (vanilla) list of spatial objects.
- summary functions
The argument 'correction="all"' is now recognised: it selects
all the available options.
This applies to Fest, F3est, Gest, Gcross, Gdot, Gmulti, G3est, Gfox,
Gcom, Gres, Hest, Jest, Jmulti, Jcross, Jdot, Jfox,
Kest, Kinhom, Kmulti, Kcross, Kdot, Kcom, Kres,
Kmulti.inhom, Kcross.inhom, Kdot.inhom, Kscaled, Ksector, Kmark,
K3est, Lscaled, markcorr, markcrosscorr,
nnorient, pairorient, pcfinhom, pcfcross.inhom, pcfcross, pcf, Tstat.
- clarkevans
The argument 'correction="all"' is now recognised: it selects
all the available options. [This is also the default.]
- predict.mppm
The argument 'type="all"' is now recognised: it selects
all the available options. [This is also the default.]
- plot.kppm
The argument 'what="all"' is now recognised: it selects
all the available options. [This is also the default.]
- connected.im, connected.owin
Arguments '...' now determine pixel resolution.
- anova.mppm
New argument 'fine'
- as.owin.data.frame
New argument 'step'
- discs
Now accepts a single numeric value for 'radii'.
- plot.ppp, plot.profilepl, plot.quadratcount, plot.quadrattest, plot.tess
Now recognise graphics parameters for text, such as 'family' and 'srt'
- as.function.tess
New argument 'values' specifies the function values.
- cdf.test
Calculations are more robust against numerical rounding effects.
- progressreport
Behaviour improved. New arguments 'tick', 'showtime'.
- simulate.ppm
New argument 'verbose'
- compileK, compilepcf
These internal functions are now documented.
BUG FIXES
- cdf.test.ppm
Calculation of p-values was incorrect for Gibbs models:
1-p was computed instead of p.
[Spotted by Sven Wagner.]
Fixed.
- subfits
The interaction coefficients of the submodels were incorrect
for Gibbs models with a multitype interaction (MultiStrauss, etc).
[Spotted by Sven Wagner.]
Fixed.
- subfits
Crashed when a Gibbs model included factor-valued spatial covariates
and not all levels of the factor were present in each row of the data.
[Spotted by Sven Wagner.]
Fixed.
- subfits
For Gibbs models with a multitype interaction (MultiStrauss, etc),
computation of the conditional intensity caused an error.
[Spotted by Sven Wagner.]
Fixed.
- diagnose.ppm
Crashed if what="smooth", when the original window was a rectangle.
[Spotted by Virginia Morera Pujol.]
Fixed.
- mppm
The x and y coordinates were not permitted in the
random-effects formula 'random'.
[Spotted by Sven Wagner.]
Fixed.
- vcov.ppm
The result had no 'dimnames', if the model was fitted using method="ho".
Fixed.
spatstat 1.45-1
OVERVIEW
- This version was never released.
spatstat 1.45-0 (2016-03-10)
OVERVIEW
- We thank Monsuru Adepeju, Mario D'Antuono, Markus Herrmann,
Paul Hewson, Kassel Hingee, Greg McSwiggan, Suman Rakshit and Sven Wagner
for contributions.
- Important bug fix in leverage/influence diagnostics for Gibbs models.
- Numerous bug fixes in code for replicated point patterns.
- Surgery on linear networks.
- Tessellations on a linear network.
- Laslett's Transform.
- Colour maps for point patterns with continuous marks are easier to define.
- Pair correlation function estimates can be pooled.
- Stipulate a particular version of a package.
- Fixed namespace problems arising when spatstat is not loaded.
- Bug fixes and performance improvements.
- spatstat now contains 100,000 lines of R code.
- Version nickname: 'One Lakh'
NEW FUNCTIONS
- laslett
Laslett's Transform.
[Thanks to Kassel Hingee]
- lintess
Tessellation on a linear network.
- divide.linnet
Divide a linear network into pieces demarcated by a point pattern.
- insertVertices
Insert new vertices in a linear network.
- thinNetwork
Remove vertices and/or segments from a linear network etc
- connected.linnet
Find connected components of a linear network.
- nvertices, nvertices.linnet, nvertices.owin
Count the number of vertices in a linear network
or vertices of the boundary of a window.
- as.data.frame.linim, as.data.frame.linfun
Extract a data frame of spatial locations and function values
from an object of class 'linim' or 'linfun'.
- as.linfun, as.linfun.linim, as.linfun.lintess
Convert other kinds of data to a 'linfun' object.
- requireversion
Require a particular version of a package
(for use in stand-alone R scripts).
SIGNIFICANT USER-VISIBLE CHANGES
- [.linnet, [.lpp
New argument 'snip' determines what to do with segments of the network
that cross the boundary of the window.
Default behaviour has changed.
- pcfinhom
Default behaviour is changed when 'lambda' is a fitted model.
The default is now to re-fit the model to the data before computing pcf.
New arguments 'update' and 'leaveoneout' control this.
- envelope methods
New argument 'funYargs' contains arguments to the summary function
when applied to the data pattern only.
- plot.ppp, plot.lpp
For a point pattern with continuous marks ('real numbers')
the colour arguments 'cols', 'fg', 'bg' can now be vectors of
colour values, and will be used to determine the default colour map
for the marks.
- symbolmap
Now accepts a vector of colour values for the arguments 'col', 'cols',
'fg', 'bg' if argument 'range' is given.
- closepairs.ppp, closepairs.pp3
New arguments 'distinct' and 'neat' allow more options.
- closepairs.ppp, closepairs.pp3
Argument 'ordered' has been replaced by 'twice'
(but 'ordered' is still accepted, with a warning).
- closepairs.ppp, closepairs.pp3
Performance improved (computation time and memory requirements reduced.)
This should improve the performance of many functions in spatstat.
- Geyer
The saturation parameter 'sat' can now be less than 1.
- lpp, as.lpp
These functions now handle the case where 'seg' and 'tp' are given
but 'x' and 'y' are missing.
- linnet
If the argument 'edges' is given, then this argument now determines the
ordering of the sequence of line segments. For example, the i-th row
of 'edges' specifies the i-th line segment in as.psp(L).
- funxy, distfun
The functions created by funxy and distfun have arguments (x,y).
The user may now give a ppp or lpp object for the argument 'x',
instead of giving two coordinate vectors 'x' and 'y'.
- crossing.psp
New argument 'details' gives more information about the intersections
between the segments.
- subset.ppp, subset.lpp, subset.pp3, subset.ppx
The argument 'subset' can now be any argument acceptable to the "[" method.
- density.lpp
New argument 'weights'.
- pcf.ppp
New argument 'ratio' allows several estimates of pcf to be pooled.
- summary.ppm
New argument 'fine' selects the algorithm for variance estimation.
- texturemap
Argument 'textures' can be missing or NULL.
- plot.lpp
New argument 'show.network'
- linnet
New argument 'warn'
- mppm
Performs more checks for consistency of the input data.
- mppm
New arguments 'gcontrol' and 'reltol.pql' control the fitting algorithm.
- edge.Trans
New argument 'gW' for efficiency.
- pool.fv
The default plot of the pooled function no longer includes
the variance curves.
- clickpoly
The polygon is now drawn progressively as the user clicks new vertices.
- Kest
Accelerated computation (for translation and rigid corrections)
when window is an irregular shape.
- vcov.ppm, leverage.ppm, influence.ppm, dfbetas.ppm
Performance slightly improved, for Gibbs models.
- Internal code
Performance slightly improved.
- Fest, Hest
Additional checks for errors in input data.
BUGS
- leverage.ppm, influence.ppm, parres.ppm, addvar.ppm
Calculations were completely incorrect for Gibbs models,
due to a coding error.
Fixed.
- update.kppm
If the call to 'update' did not include a formula argument
or a point pattern argument, then all arguments were ignored.
Example: update(fit, improve.type="quasi") was identical to 'fit'.
Fixed.
- diagnose.ppm
When applied to a model obtained from subfits(),
in the default case (oldstyle=FALSE)
the variance calculations were incorrect.
Consequently the dotted lines representing significance bands were
incorrect. An error or warning about negative variances occurred sometimes.
However, calculations with oldstyle=TRUE were correct.
The default has now been changed to oldstyle=TRUE for such models.
- [.lpp
The local coordinate 'seg' was completely incorrect,
when 'i' was a window.
Fixed.
- leverage.ppm, influence.ppm, parres.ppm, addvar.ppm
Crashed for Gibbs models in which the coefficient vector had length 1,
such as the stationary Hardcore model.
Fixed.
- subfits
Crashed if the model included factor-valued spatial covariates.
[Spotted by Sven Wagner]
Fixed.
- subfits
If the model included factor-valued spatial covariates, and if
not all levels of the factor were present in each row of the data,
the resulting objects were malformed and caused errors in other code.
[Spotted by Sven Wagner]
Fixed.
- subfits
Crashed with some random-effects formulas.
[Spotted by Sven Wagner]
Fixed.
- improve.kppm
An error message about a missing object 'gminus1' occurred
when vcov=TRUE, fast.vcov=FALSE and type="clik1" or "wclik1".
Fixed.
- plot.profilepl
Failed with a message about a missing object 'finite'.
Fixed.
- selfcut.psp
Gave an error if marks(A) was a vector rather than a data frame.
[Spotted by Paul Hewson.]
Fixed.
- suffstat
Gave an error for point process models with Geyer interaction.
Fixed.
- nncross.lpp, distfun.lpp
Crashed with obscure errors if Y consisted of a single point.
Fixed.
- scan.test, scanmeasure
Crashed sometimes with an error message from 'grow.mask'.
Fixed.
- dppm
Crashed sometimes with a message that the point pattern could not be found.
[Scoping bug.]
Fixed.
- mppm, profilepl
Crashed, with a message about 'SpatstatVersion',
if the 'spatstat' package was neither loaded nor attached.
[Spotted by Markus Herrmann.]
Fixed.
- qqplot.ppm
Crashed sometimes when applied to a model obtained from subfits().
Fixed.
- anova.mppm
Crashed sometimes with a message about mismatched coefficients.
[Spotted by Sven Wagner.]
Fixed.
- anova.mppm
Crashed sometimes with a message about unrecognised option 'type="score"'.
[Spotted by Sven Wagner.]
Fixed.
- split.ppx
Crashed if 'f' was not a factor.
Fixed.
- idw
The result was a pixel image defined in the rectangle Frame(X)
instead of Window(X).
Fixed.
- ppm
Parameter estimates were slightly inaccurate
when the model included the Geyer() interaction
and the "isotropic" edge correction was used.
Fixed.
- [.ppx
Crashed if the number of points selected was less than 2.
Fixed.
- linnet
Crashed if there were no line segments at all.
Fixed.
- kppm, improve.kppm
Crashed if the model was stationary and improve.type != "none".
Fixed.
- as.linim.default
Did not correctly handle factor-valued data.
Fixed.
- texturemap
Crashed if no graphical arguments were specified.
Fixed.
- vcov.mppm
Ignored "..." arguments.
Fixed.
- Kest
If ratio=TRUE and correction=c('border', 'none')
the result did not contain ratio information.
Fixed.
- plot.ppp, plot.lpp
Arguments 'chars' and 'cols' were ignored in some cases.
Fixed.
- ppm
Ignored argument 'emend'.
Fixed.
- plot.dppm
Gave warnings about unrecognised argument 'objectname'.
Fixed.
- overlap.owin
Sometimes returned a very small negative value,
when the correct answer was 0.
Fixed.
spatstat 1.44-1 (2015-12-29)
OVERVIEW
- We thank Brian Ripley for contributions.
- Urgent bug fix.
- More support for replicated point patterns.
- More support for tessellations.
- Version nickname: 'Gift Horse'
NEW FUNCTIONS
- as.function.tess
Convert a tessellation to a function(x,y). The function value
indicates which tile of the tessellation contains the point (x,y).
- tileindex
Determine which tile of a tessellation contains a given point (x,y).
- persp.leverage.ppm
Method for persp plots for objects of class leverage.ppm
- AIC.mppm, extractAIC.mppm
AIC for point process models fitted to replicated point patterns.
- nobs.mppm, terms.mppm, getCall.mppm
Methods for point process models fitted to replicated point patterns.
SIGNIFICANT USER-VISIBLE CHANGES
- anova.mppm
Now handles Gibbs models, and performs the
adjusted composite likelihood ratio test.
- update, step
These functions now work for models of class 'mppm'.
- textureplot
Argument x can now be something acceptable to as.im
- logLik.mppm
New argument 'warn'.
BUGS
- nncross.lpp, nnwhich.lpp, distfun.lpp
Caused a segmentation fault.
[Spotted by Brian Ripley.]
Fixed.
- anova.ppm
If a single 'object' was given, and the object was a Gibbs model,
then 'adjust' was effectively set to FALSE.
Fixed.
spatstat 1.44-0 (2015-12-23)
OVERVIEW
- We thank Jonas Geldmann, Andrew Hardegen, Kassel Hingee,
Tom Lawrence, Robin Milne, Gopalan Nair, Suman Rakshit, Peijian Shi
and Rasmus Waagepetersen for contributions.
- More support for multidimensional point patterns and point processes.
- More options for envelopes and related Monte Carlo tests.
- More support for model comparison.
- k-th nearest neighbours on a linear network.
- Penttinen process can be simulated (by Metropolis-Hastings or CFTP).
- Calculate the predicted variance of number of points.
- Convexifying operation for sets.
- Subdivide a linear network.
- Accelerated algorithms for linear networks.
- Quadrat counting accelerated, in some cases.
- Version nickname: 'The Sound of One Hand Typing'
NEW FUNCTIONS
- rPenttinen
Simulate the Penttinen process using perfect simulation.
- varcount
Given a point process model, compute the predicted variance
of the number of points falling in a window.
- inside.boxx
Test whether multidimensional points lie inside a specified
multidimensional box.
- lixellate
Divide each segment of a linear network into smaller segments.
- nsegments.linnet, nsegments.lpp
Count the number of line segments in a linear network.
- grow.boxx
Expand a multidimensional box.
- deviance.ppm, deviance.lppm
Deviance for a fitted point process model.
- pseudoR2
Pseudo-R-squared for a fitted point process model.
- tiles.empty
Checks whether each tile of a tessellation is empty or nonempty.
- summary.linim
Summary for a pixel image on a linear network.
SIGNIFICANT USER-VISIBLE CHANGES
- rMaternI, rMaternII
These functions can now generate random patterns in
three dimensions and higher dimensions, when the argument
'win' is of class 'box3' or 'boxx'.
- "[.ppx"
The subset index 'i' may now be a spatial domain
of class 'boxx' or 'box3'.
- rmh.ppm, rmhmodel.ppm, simulate.ppm
A model fitted using the 'Penttinen' interaction can now be simulated.
- rmh.default, rmhmodel.default
These functions now recognise cif='penttinen' for the Penttinen interaction.
- envelope
New argument 'clamp' gives greater control over one-sided envelopes.
- dclf.test, mad.test, dclf.progress, mad.progress,
dclf.sigtrace, mad.sigtrace
New argument 'clamp' determines the test statistic for one-sided tests.
- dclf.progress, mad.progress, dclf.sigtrace, mad.sigtrace,
mctest.progress, mctest.sigtrace, dg.progress, dg.sigtrace
New argument 'rmin' determines the left endpoint of the test interval.
- dclf.test, mad.test, dg.test, dg.progress, dg.sigtrace, dg.envelope
(also accepted by dclf.progress, mad.progress, dclf.sigtrace, mad.sigtrace)
New argument 'leaveout' specifies how to calculate the deviation
between the observed summary function and nominal reference value.
- envelope
New argument 'funargs'
- Hest
Argument X can now be a pixel image with logical values.
New argument 'W'. [Based on code by Kassel Hingee.]
- nncross.lpp, distfun.lpp
New argument 'k' allows calculation of k-th nearest neighbour.
Computation accelerated.
- logLik.ppm
New argument 'absolute'.
- plot.kppm
New arguments 'pause' and 'xname'.
- tess
Argument 'window' is ignored when xgrid, ygrid are given.
- as.polygonal
Can now repair errors in polygon data, if repair=TRUE.
- rStrauss, rHardcore, rStraussHard, rDiggleGratton, rDGS, rPenttinen
New argument 'drop'.
- Kest.fft
Now has '...' arguments allowing control of spatial resolution.
- lppm
Computation accelerated.
- quadratcount.ppp
Computation accelerated in some cases.
- dg.test
Computation accelerated.
BUGS
- runifpointx, rpoisppx
Crashed if nsim > 1.
Fixed.
- triangulate.owin
Results were incorrect in some special cases.
Fixed.
- quadrat.test, clarkevans.test
In rare cases, the computed Monte Carlo p-value could have been
greater than 1. This could have occurred only when nsim was an even number
and when the correct p-value was equal to 1.
Fixed.
- linearmarkequal
Result was a data frame instead of an 'fv' object.
Fixed.
- point-in-polygon test
The function inside.owin could take a very long time to check
whether points are inside a polygonal window, if the coordinates
were very large numbers. This was due to numerical overflow.
(Fixed??)
- as.fv.kppm
Crashed if the model was not fitted by minimum contrast.
Fixed.
- plot.fv
Crashed in some obscure cases.
Fixed.
- collapse.fv
Did not allow 'same=NULL'.
Fixed.
- dclf.progress, mad.progress, dg.progress,
dclf.sigtrace, mad.sigtrace, dg.sigtrace
The results could not be re-plotted using a plot formula,
because the internal data were slightly corrupted.
Fixed.
- Kest.fft
Result was incorrectly normalised.
Fixed.
- crosspairs
If X and Y were identical point patterns,
the result was not necessarily symmetric
(on some machines) due to numerical artifacts.
Fixed.
- plot.fv
Lines were not correctly clipped to the plot region when 'ylim' was given.
Fixed.
- pool.envelope
The 'scale' argument was not handled correctly.
Fixed.
spatstat 1.43-0 (2015-10-08)
OVERVIEW
- We thank Leanne Bischof, Christophe Biscio, Belarmain Fandohan,
Andrew Hardegen, Frederic Lavancier, Tom Lawrence, Martin Maechler,
Greg McSwiggan, Robin Milne, Gopalan Nair, Tuomas Rajala,
Suman Rakshit, Ben Ramage, Francois Semecurbe and Ida-Maria Sintorn
for contributions.
- spatstat now depends on the package 'nlme'.
- spatstat now depends on R 3.2.2 or later.
- Simulation algorithms have been accelerated; simulation outcomes
are *not* identical to those obtained from previous versions of spatstat.
- Determinantal point process models.
- Random-effects and mixed-effects models for replicated patterns.
- Dao-Genton test, and corresponding simulation envelopes.
- Simulated annealing and simulated tempering.
- spatstat colour tools now handle transparent colours.
- Improvements to "[" and subset() methods
- Extensions to kernel smoothing on a linear network.
- Support for one-dimensional smoothing kernels.
- Bug fix in Metropolis-Hastings simulation.
- Mark correlation function may include weights.
- Cross-correlation version of the mark correlation function.
- Variance calculations for replicated patterns.
- Penttinen pairwise interaction model.
- Contour plots with colours determined by a colour map.
- New dataset: Australian states and territories.
- More support for multi-dimensional point patterns.
- Minor improvements and bug fixes.
- Version nickname: "Mixed Effects"
NEW DATASET
- austates
The states and large mainland territories of Australia
represented as polygonal regions forming a tessellation.
NEW FUNCTIONS
- dppm
Fit a determinantal point process model to point pattern data.
- fitted.dppm, predict.dppm, intensity.dppm
Predict a fitted dppm object.
- logLik.dppm, AIC.dppm, extractAIC.dppm, nobs.dppm
Likelihood and AIC for determinantal point process models
(enabling the use of 'step')
- coef.dppm, formula.dppm, print.dppm, terms.dppm, labels.dppm,
model.frame.dppm, model.matrix.dppm, model.images.dppm,
is.stationary.dppm, reach.dppm, unitname.dppm, unitname<-.dppm, Window.dppm
Various methods for dppm objects.
- parameters.dppm
Extract meaningful list of model parameters
- objsurf.dppm
Objective function surface of a dppm object
- residuals.dppm
Residual measure for a dppm object.
- dppBessel, dppCauchy, dppGauss, dppMatern, dppPowerExp
Determinantal Point Process models.
- update.dppmodel
Set parameter values in a dpp model.
- is.stationary.dppmodel, print.dppmodel, reach.dppmodel, valid.dppmodel
Basic information about a dpp model
- rdpp, simulate.dppmodel
Simulation of a dpp model.
- intensity.dppmodel, Kmodel.dppmodel, pcfmodel.dppmodel
Moments of a dpp model
- dim.dppmodel, dppapproxkernel, dppapproxpcf, dppeigen, dppfamily,
dppkernel, dppparbounds, dppspecdenrange, dppspecden
Helper functions for dpp models.
- dclf.sigtrace, mad.sigtrace, mctest.sigtrace
Significance trace of Monte Carlo test
- dg.test
Dao-Genton adjusted Monte Carlo goodness-of-fit test.
- dg.envelope
Simulation envelopes corresponding to Dao-Genton test.
- dg.sigtrace
Significance trace for Dao-Genton test
- dg.progress
Progress plot for Dao-Genton test
- markcrosscorr
Mark cross-correlation function for point patterns with
several columns of marks
- fixef.mppm, ranef.mppm
Extract fixed effects and random effects from a point process model
fitted to replicated point patterns.
- rtemper
Simulated annealing or simulated tempering.
- to.opaque, to.transparent
Change transparency value in colours
- rgb2hsva
Convert RGB to HSV data, like rgb2hsv, but preserving transparency.
- superimpose.ppplist, superimpose.splitppp
New methods for 'superimpose' for lists of point patterns.
- dkernel, pkernel, qkernel, rkernel
Probability density, cumulative probability, quantiles
and random generation from distributions used in basic one-dimensional
kernel smoothing.
- kernel.factor
Auxiliary calculations for one-dimensional kernel smoothing.
- PPversion, QQversion
Transformation of a summary function to its P-P or Q-Q counterpart.
- spatdim
Spatial dimension of any object in the spatstat package.
- as.boxx
Convert data to a multi-dimensional box.
- intensity.ppx
Method for 'intensity' for multi-dimensional space-time point patterns.
- fourierbasis
Evaluate Fourier basis functions in any number of dimensions.
- valid
New generic function, with methods valid.ppm, valid.lppm, valid.dppmodel
- emend, emend.ppm, emend.lppm
New generic function with methods for ppm and lppm.
emend.ppm is equivalent to project.ppm
- Penttinen
New pairwise interaction model.
- quantile.density
Calculates quantiles from kernel density estimates.
- CDF.density
Calculates cumulative distribution function from kernel density estimates.
SIGNIFICANT USER-VISIBLE CHANGES
- simulation
Several basic simulation algorithms have been accelerated.
Consequently, simulation outcomes are not identical to
those obtained with previous versions of spatstat, even when the
same random seed is used. To ensure compatibility with previous
versions of spatstat, revert to the slower code by setting
spatstat.options(fastthin=FALSE, fastpois=FALSE).
- mppm
Now handles models with a random effect component.
New argument 'random' is a formula specifying the random effect.
- vcov.mppm
Now handles models with Gibbs interactions.
- [.ppp
New argument 'clip' determines whether the window is clipped.
- [.ppp
The previously-unused argument 'drop' now determines whether
to remove unused levels of a factor.
- [.pp3, [.lpp, [.ppx, subset.ppp, subset.pp3, subset.lpp, subset.ppx
These methods now have an argument 'drop' which determines
whether to remove unused levels of a factor.
- density.lpp
Now supports both the 'equal-split continuous' and
'equal-split discontinuous' smoothers. New argument 'continuous'
determines the choice of smoother.
- envelope
New argument 'scale' allows global envelopes to have
width proportional to a specified function of r,
rather than constant width.
- dclf.test, mad.test, dclf.progress, mad.progress, mctest.progress
New argument 'scale' allows summary function values to be rescaled
before the comparison is performed.
- dclf.test, mad.test
New argument 'interpolate' supports interpolation of p-value.
- dclf.progress, mad.progress, mctest.progress
New argument 'interpolate' supports interpolation of critical value of test.
- simulate.ppm
New argument 'w' controls the window of the simulated patterns.
- default.rmhcontrol, default.rmhexpand
New argument 'w'.
- markcorr
New argument 'weights' allows computation of the weighted version
of the mark correlation function.
- density.lpp
New argument 'kernel' specifies the smoothing kernel.
Any of the standard one-dimensional smoothing kernels can be used.
- contour.im
New argument 'col' specifies the colour of the contour lines.
If 'col' is a colour map, then the contours are drawn in different colours.
- plot.ppp
The default colour for the points is now a transparent grey,
if this is supported by the plot device.
- rgbim, hsvim
New argument 'A' controls the alpha (transparency) channel.
- rgb2hex, col2hex, paletteindex, is.colour, samecolour,
complementarycolour, is.grey, to.grey
These colour tools now handle transparent colours.
- rgb2hex
New argument 'maxColorValue'
- to.grey
New argument 'transparent'.
- progressreport
New argument 'state'
New option: style="tk"
- rLGCP
This function no longer requires the package 'RandomFields'
to be loaded explicitly.
- kppm
Fitting a model with clusters="LGCP" no longer requires the
package 'RandomFields' to be loaded explicitly.
- rpoispp
Accelerated, when 'lambda' is a pixel image.
- rthin
Accelerated, when 'P' is a single number.
- spatstat.options
New options 'fastthin' and 'fastpois' enable fast simulation algorithms.
Set these options to FALSE to reproduce results obtained with
previous versions of spatstat.
- split.ppp
The splitting variable 'f' can now be a logical vector.
- collapse.fv
This is now treated as a method for the 'nlme' generic 'collapse'.
Its syntax has been adjusted slightly.
- diagnose.ppm, plot.diagppm
New arguments col.neg, col.smooth control the colour maps.
- valid.ppm
This is now a method for the generic function 'valid'.
- ppm.ppp, ppm.quad
New argument 'emend', equivalent to 'project'.
- "[<-.im"
Accepts an array for 'value'.
- as.im.function
New argument 'strict'.
- bw.ppl
New argument 'weights'.
- plot.mppm
New argument 'se'.
- dclf.test, mad.test
Formal arguments 'use.theo' and 'internal' have been removed.
- predict.kppm, residuals.kppm
Now issues a warning when the calculation ignores the
cluster/Cox component and treats the model as if it were Poisson.
(This currently happens in predict.kppm when se=TRUE or interval != "none",
and in residuals.kppm when type != "raw").
BUG FIXES
- lpp
Crashed if X was a 4-column matrix.
Fixed.
- plot.fv
Crashed with some graphics devices, if legend=TRUE.
Fixed.
- effectfun
Crashed if 'covname' was missing.
Fixed.
- rVarGamma, rMatClust, rThomas, rCauchy, rNeymanScott
Crashed if 'kappa' was a function or image instead of a single number.
[Spotted by Ben Ramage.]
Fixed.
- plot.mppm
Crashed with a message about "figure margins too large"
unless the argument se=FALSE was given explicitly.
Fixed.
- opening.owin, closing.owin
Crashed sometimes, with a message about a rectangle not containing a window.
Fixed.
- persp.im
Crashed if all pixel values were equal to zero (unless zlim was given).
Fixed.
- predict.ppm
Crashed sometimes if the model was fitted with use.gam=TRUE.
- as.linim.linfun
Generated an error ('L must be a linear network')
if extra arguments were given.
- as.function.fv
Generated an error when executed in the 'covr' package.
Fixed.
- rmh, simulate.ppm
Results were incorrect for inhomogeneous multitype models
simulated with fixall=TRUE (i.e. prescribing a fixed number of
points of each type) if the model was segregated
(i.e. if different types of points had different first order trend).
Fixed.
- dclf.progress, mad.progress
Ignored the argument 'alternative'.
Fixed.
- $<-.hyperframe, [<-.hyperframe
Result was garbled if 'value' was a hyperframe with one column.
- rmh.ppm
Argument 'w' was ignored in some cases.
Fixed.
- Hest
There was an artefact at r=0 when conditional=TRUE.
Fixed.
- [.msr
The result of M[W] where W is a window
was a measure with window W, instead of intersect.owin(W, Window(M)).
Fixed.
- pool.envelope
Did not always respect the value of 'use.theory'.
Fixed.
- envelope, pool.envelope
If 'ginterval' was given, the results were in a slightly incorrect format.
Fixed.
- pool.envelope
Did not check for compatible values of 'ginterval'.
Fixed.
spatstat 1.42-2 (2015-06-29)
OVERVIEW
- We thank Bob Klaver and Harold-Jeffrey Ship for contributions.
- Improvements to simulation of Neyman-Scott processes.
- Improvements to fitting of Neyman-Scott models.
- Extended functionality for pixel images.
- Fitted intensity on linear network
- Triangulation of windows.
- Corrected an edge correction.
- Bug fixes and performance improvements.
- Nickname: 'Barking at Balloons'
NEW FUNCTIONS
- triangulate.owin
Decompose a spatial window into triangles.
- fitted.lppm
Fitted intensity values for a point process on a linear network.
SIGNIFICANT USER-VISIBLE CHANGES
- rThomas, rMatClust, rCauchy, rVarGamma
When the model is approximately Poisson, it is simulated using rpoispp.
This avoids computations which would require huge amounts of memory.
New argument 'poisthresh' controls this behaviour.
- update.kppm
Now handles additional arguments in any order, with or without names.
Changed arguments. Improved behaviour.
- kppm, clusterfit
New argument 'algorithm' specifies the choice of optimisation algorithm.
- kppm
Left hand side of formula can now involve entries in the list 'data'.
- rotmean
New argument 'padzero'.
Default behaviour has changed.
- rose.default
New argument 'weights'.
- rose
New arguments 'start' and 'clockwise' specify the convention
for measuring and plotting angles.
- padimage
New argument 'W' allows an image to be padded out to fill any window.
- union.owin
Improved behaviour when there are more than 2 windows.
- clusterset
Improved behaviour.
- affine.owin
Allows transformation matrix to be singular, if the window is polygonal.
BUG FIXES
- spatstat
spatstat could not be installed on some 64-bit VM systems
because of an apparent bug in R.
Fixed.
- rThomas, rMatClust, rCauchy, rVarGamma
Large values of the scale parameter could cause the algorithm to freeze
or require huge amounts of memory.
Fixed.
- pcf, pcfinhom
Crashed if the point pattern was empty.
Fixed.
- plot.fv
Gave an error message if all 'y' values were equal, when legend=TRUE.
Fixed.
- rose.default
Display was incorrect when unit="radian".
Fixed.
- Kest
Ohser-Stoyan rigid motion correction (correction='rigid')
was calculated incorrectly at large distances.
Fixed.
- summary.im
Issued a warning about numerical overflow in some cases.
[Spotted by Bob Klaver.]
Fixed.
- plot.im
Sometimes warned that 'box' is not a graphical parameter.
Fixed.
spatstat 1.42-1 (2015-06-05)
OVERVIEW
- We thank Andrew Hardegen, Tom Lawrence, Robin Milne, Suman Rakshit,
and Brian Ripley for contributions.
- Urgent bug fix.
- More robust simulation of cluster processes.
- Slightly accelerated.
- Version nickname: 'Vogon Poetry'
NEW FUNCTIONS
- boundingbox.solist
Method for boundingbox for lists of spatial objects.
SIGNIFICANT USER-VISIBLE CHANGES
- rThomas, rMatClust, rCauchy, rVarGamma, rNeymanScott
New faster algorithm which is more robust against extreme values of
the parameters.
- rNeymanScott
New argument 'nonempty' controls choice of algorithm.
- solist, as.solist
Accelerated.
- as.list.hyperframe
Accelerated.
BUG FIXES
- residuals.mppm
Brought some computers to a grinding halt, due to the bug in solist().
Fixed.
- solist, as.solist
In rare cases, the format was corrupted, or the algorithm never terminated.
Fixed.
spatstat 1.42-0 (2015-06-01)
OVERVIEW
- We thank Anders Bilgrau, Ute Hahn, Jack Hywood, Tuomas Rajala,
Cody Schank, Olivia Semboli and Ben Taylor for contributions.
- Version nickname: 'Life, The Universe and Everything'
- Permutation test for difference between groups of point patterns.
- Variational Bayes estimation for point process models.
- Score test in anova.ppm
- ROC curve, and discrimination index AUC, for fitted models.
- Interactive text editor for spatial datasets.
- Tools for analysing data on a tree.
- Kernel density/intensity estimation on a linear network.
- Random pixel noise.
- Improved behaviour of polygon geometry operations.
- Improved support for cluster and Cox models.
- Improved basic support for owin objects.
- Improved support for tessellations.
- More hierarchical Gibbs interactions.
- Modifications to Kest.
- summary method for Cox and cluster models.
- class 'listof' is almost completely replaced by 'anylist' and 'solist'.
- Improvements and bug fixes.
- spatstat now depends on R version 3.2.0 or later.
NEW FUNCTIONS
- studpermu.test
Studentised permutation test for difference between groups of point patterns.
Generously contributed by Ute Hahn.
- AIC.kppm, extractAIC.kppm, logLik.kppm, nobs.kppm
Methods for computing AIC for fitted Cox and cluster models.
- transmat
Convert pixel arrays between different display conventions.
- roc
Receiver Operating Characteristic curve.
- auc
Discrimination index AUC (area under the ROC curve)
- edit.ppp, edit.psp, edit.im
Interactive text editor works for spatial datasets.
- edit.hyperframe
Interactive text editor works for hyperframes.
- parameters
Extract all parameters from a fitted model.
- density.lpp
Kernel estimation of point process intensity on a linear network.
- extractbranch, deletebranch, treeprune, treebranchlabels, begins
Tools for analysing data on a tree.
- rnoise
Random pixel noise.
- as.data.frame.owin
Convert a window to a data frame.
- harmonise.owin
Convert several binary mask windows to a common pixel grid.
- copyExampleFiles
Copy the raw data files from an installed dataset
to a chosen folder, for use in a practice exercise.
- density.ppplist
Method for 'density' for lists of point patterns.
- inradius
Radius of largest circle inside a window.
- mergeLevels
Merge different levels of a factor.
- relevel.im, relevel.ppp, relevel.ppx
Change the reference level of a factor.
- simulate.profilepl
simulation method for models fitted by profile maximum pseudolikelihood.
- predict.rho2hat
Prediction method for class rho2hat
- with.msr
Evaluate (an expression involving) components of a measure.
- summary.kppm, print.summary.kppm, coef.summary.kppm
Methods for 'summary' and 'coef(summary(..))' for Cox and cluster models.
- as.im.funxy
Method for as.im for class funxy.
- shift.linim, scalardilate.linim, affine.linim
Geometrical transformations for 'linim' objects.
- Smooth.solist
Smooth method for a list of spatial objects.
- unitname.tess, unitname<-.tess
Tessellations now keep track of the name of the unit of length.
- dirichletAreas
Faster algorithm for tile.areas(dirichlet(X)).
- identify.lpp
Method for 'identify' for point patterns on a linear network.
- HierStraussHard, HierHard
Hierarchical interactions for Gibbs models.
- delaunayDistance, delaunayNetwork, dirichletEdges,
dirichletNetwork, dirichletVertices, dirichletWeights
These functions will replace delaunay.distance, delaunay.network,
dirichlet.edges, dirichlet.network, dirichlet.vertices and
dirichlet.weights respectively.
The latter are now 'deprecated'.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
Now supports Variational Bayes fitting method.
- kppm
'AIC' and 'step' now work for kppm objects
fitted using maximum Palm likelihood.
- kppm
The default for the weight function 'weightfun' has been changed,
for better performance.
- envelope
envelope methods now have argument 'use.theory' specifying whether
to use the 'theoretical' value of the summary function when constructing
simultaneous envelopes.
- anova.ppm
Now performs the Score Test, for Poisson models only,
if argument test="Rao" or test="score".
- Kest
New argument 'rmax' controls maximum value of argument 'r'
- diagnose.ppm
Now computes and prints the null standard deviation of the
smoothed Pearson residual field, when appropriate.
- nncorr, nnmean, nnvario
New argument 'k' specifies k-th nearest neighbour.
- quadrat.test.ppp, quadrat.test.quadratcount
New argument 'lambda' supports a test of the Poisson process
with given intensity 'lambda'.
- clickpoly, clickbox
These functions now handle graphical arguments to polygon()
when drawing the resulting polygon or rectangle.
- owin, as.owin, as.mask
owin(mask=D) or as.owin(D) or as.mask(D) will produce a binary mask window
if D is a data frame with two columns of (x,y) coordinates
or a data frame with three columns containing (x,y,logical).
- as.owin.data.frame
W can now be a data frame with only two columns,
giving the spatial coordinates of the pixels that are inside the window.
- rose
Tick marks now have labels showing the angle (in degrees or radians).
- distcdf
New argument 'regularise' determines whether values at short distances
will be smoothed to avoid discretisation artefacts.
- rpoislinetess
Return value now has an attribute 'lines' giving the
realisation of the Poisson line process.
- intersect.owin, union.owin, setminus.owin
New argument 'p' controls resolution of polygon clipping algorithm.
- intersect.owin, union.owin
Arguments may be lists of windows, of class 'solist'.
Formal arguments A and B have been removed.
- superimpose
Now handles lists of point patterns
(objects of class 'ppplist' or 'splitppp')
- density.ppp
New argument 'positive' allows the user to stipulate that
density values must be positive (avoiding numerical errors
which occasionally produce small negative values).
- adaptive.density
Now accepts f = 0 (uniform intensity estimate) and
f = 1 (Voronoi intensity estimate) as well as 0 < f < 1.
Algorithm accelerated.
- rSSI
Can now generate inhomogeneous patterns.
- effectfun
Now works for 'kppm' and 'lppm' objects as well.
- integral.im, integral.msr
Argument 'domain' can now be a tessellation;
the integral over each tile of the tessellation is returned.
- allstats, compareFit, markcorr, split.ppx, by.ppp
Result is now of class 'anylist'.
- by.im, density.splitppp, idw, model.images, nnmark, pixellate.ppp,
predict.lppm, predict.ppm, quadratcount.splitppp, quadratresample, relrisk,
Smooth.msr, split.im, tiles
Result is now of class 'solist'.
- split.ppp
New argument 'reduce'.
Result now inherits class 'ppplist' and 'solist', as well as 'splitppp'
- rLGCP
New argument 'nsim' allows multiple patterns to be generated.
- alltypes
New argument 'reuse' determines whether all simulation envelopes
are based on the same set of simulated patterns, or on independent sets.
- rpoispp, runifpoint
New argument 'ex' makes it possible to generate a random pattern
similar to an example point pattern.
- effectfun
Argument 'covname' is not needed if the model has only one covariate.
- quadratcount
Argument 'tess' can now be anything acceptable to as.tess.
- tess
New argument 'unitname' specifies the name of the unit of length.
If it is missing, unitname information will be extracted from the
other data.
- intersect.tess, chop.tess, quadrats
Results of these functions now have the same 'unitname' as their input.
- persp.im, nnclean, plot.qqppm, plot.bw.optim
These plotting functions now obey spatstat.options('monochrome')
- lurking
Now returns an object of class 'lurk' which has a plot method.
Two-standard-deviation limits are now plotted using grey shading.
- marktable
New argument 'N' for studying the N nearest neighbours.
New argument 'collapse' for manipulating the contingency table.
- harmonise.fv
Now discards columns with names which do not match.
- eval.fv
New argument 'equiv' can be used to declare that two columns
with different names in different objects are equivalent.
- quantile.ewcdf
New argument 'type' controls the type of quantile.
- plot.imlist
New argument 'plotcommand' specifies how to plot each image.
- persp.im
The lower extent of the apron can now be controlled by 'zlim'.
- quadscheme
Argument 'method' is partially matched.
- Kdot, Ldot
New argument 'from' is an alternative to 'i'.
- Kcross, Lcross
New arguments 'from' and 'to' are alternatives to 'i' and 'j' respectively.
- varblock
Changed the ordering (and therefore default colours/styles)
of curves in the plot, to match other functions like lohboot.
- bw.diggle
New argument 'nr' controls accuracy.
- textureplot
Now accepts a pixel image, a tessellation, or anything acceptable to as.tess.
- textureplot
Line spacing in legend now matches line spacing in main display.
- [.tess
Subset index can now be a window.
- plot.tess
Can now plot a text label in each tile.
- plot.tess
New argument 'do.plot'.
- MultiHard, MultiStrauss, MultiStraussHard, HierStrauss
Printed output of fitted model now respects spatstat.options('terse').
- print.ppm
Reduced redundancy in output in some cases.
- print.msr
Responds better to spatstat.options('terse').
- print.ppm, print.fii, print.interact
Irregular parameters are now printed to the number of significant figures
specified by options("digits").
- square
New argument 'unitname'.
- plot.fv
Return value is now invisible.
- delaunay.distance, delaunay.network, dirichlet.edges,
dirichlet.network, dirichlet.vertices
These functions are now 'deprecated', and will be replaced by
delaunayDistance, delaunayNetwork, dirichletEdges,
dirichletNetwork and dirichletVertices respectively.
- data(residualspaper)
In the real datasets (Fig1 and Fig11), the name of the unit of length
has now been recorded.
- rLGCP
This function now requires the package 'RandomFields'
to be loaded explicitly by library(RandomFields) or require(RandomFields),
unless model="exp".
- iplot, istat
These functions now require the package 'rpanel'
to be loaded explicitly by library(rpanel) or require(rpanel).
- ppm, quadscheme
Improved calculation of Dirichlet weights.
- countends
New argument 'toler' controls numerical errors
- diagnose.ppm
Improved handling of additional graphics arguments.
- pcf3est
Mathematical labels changed.
- plot.hyperframe
Default margin spacing has been increased.
BUG FIXES
- Kinhom, Linhom
The value of 'theo' was erroneously rescaled
by a small amount, when renormalise=TRUE (the default).
Fixed.
- Kmark
Values were erroneously rescaled.
Fixed.
- union.owin
Strange results were sometimes obtained when taking the union
of more than two windows.
Fixed.
- rpoispp3
Implementation was incorrect for nsim > 1.
(Results may have been incorrect.)
Spotted by Jack Hywood.
Fixed.
- as.owin.data.frame
Crashed if the window was not connected.
Fixed.
- Frame<-
Crashed when applied to a binary mask.
Fixed.
- rho2hat
Crashed if cov1="x" and cov2="y".
Fixed.
- as.mask
Crashed sometimes when only the argument 'xy' was given.
Fixed.
- ppm
Crashed (rarely) when method='ho' if the simulated pattern was empty.
Fixed.
- istat, iplot
Crashed in recent versions of rpanel.
Fixed.
- convexhull
Crashed if applied to a 'psp' object.
Fixed.
- plot.ppm
Crashed with message about 'variable lengths differ'.
Fixed.
- plot.solist
Crashed when applied to a list of point patterns
if some patterns had more than one column of marks.
Fixed.
- Smooth.ppp
Crashed if applied to a point pattern with several columns of marks
if some of the columns were factors.
Fixed.
- runifpoint3, rpoispp3
Crashed if nsim > 1.
Spotted by Jack Hywood.
Fixed.
- hist.im
Crashed if argument 'freq' was given.
Fixed.
- MultiStraussHard
Generated misleading error messages (e.g. 'model is invalid')
when arguments 'iradii' and 'hradii' did not have the same pattern of NA's.
Fixed.
- plot.solist
Figures were sometimes aligned incorrectly
when the argument 'panel.args' was given.
Fixed.
- scaletointerval
Results sometimes fell slightly outside the desired interval
due to numerical error.
Fixed.
- plot.solist
Behaved incorrectly when plotcommand='persp'.
Fixed.
- "[.hyperframe"
Sometimes returned an 'anylist' when it should have returned a 'solist'.
Fixed.
- plot.im
Did not plot surrounding frame box when ribbon=FALSE.
Fixed.
- envelope
The functions stored when savefuns=TRUE did not inherit
the correct name for the unit of length.
Fixed.
- print.ppm, print.fii, print.interact
Layout was misaligned.
Fixed.
- plot.plotppm
Paused for input when it was not appropriate.
Fixed.
- plot.fv
On png devices, the legend box was drawn with a white background,
obscuring the main plot.
Fixed.
- plot.owin, plot.ppp, plot.im
There was unnecessary extra space above the main title.
Fixed.
- plot.rho2hat
Colour map ribbon was drawn but not annotated.
Fixed.
- density.splitppp, density.ppplist
Format was out of order if se=TRUE.
Fixed.
- MultiStraussHard
project.ppm sometimes yielded a model that was still invalid.
Fixed.
spatstat 1.41-1 (2015-02-27)
OVERVIEW
- This is identical to the major release 1.41-0 except for
minor bug fixes. The change log for 1.41-0 is repeated here
with minor modifications.
- Version nickname: 'Ides of March'
- We thank Ahmed El-Gabbas, Ute Hahn, Aruna Jammalamadaka,
Ian Renner, Brian Ripley, Torben Tvedebrink and Sasha Voss
for contributions.
- Fixed a bug causing a segmentation fault.
- Standard errors for kernel estimates of intensity.
- Test for segregation.
- Tessellations may now have marks.
- Nested splitting.
- More support for cluster models. Reorganised parametrisation.
- Sparse data representation of linear networks.
- More support for data on a linear network.
- New datasets: 'spiders' and 'dendrite'.
- Improvements and bug fixes.
- spatstat no longer uses Fortran.
- spatstat no longer depends on the package 'scatterplot3d'.
- spatstat now imports (rather than 'suggests') the Matrix package.
NEW DATASETS
- dendrite
Dendritic spines on the dendrite network of a neuron.
A point pattern on a linear network.
Generously contributed by Aruna Jammalamadaka.
- spiders
Spider webs on the mortar lines of a brick wall.
A point pattern on a linear network.
Generously contributed by Sasha Voss.
NEW FUNCTIONS
- segregation.test
Test of spatial segregation of types in a multitype point pattern.
- clusterfield, clusterkernel
Compute the cluster kernel (offspring density) of a cluster process model,
or compute the cluster field generated by superimposing copies
of the cluster kernel at specified locations.
- clusterradius
Compute the radius of the support of the offspring density
of a cluster process model.
- as.linnet.psp
Convert a line segment pattern to a linear network
by guessing the connectivity using a distance threshold.
- iplot.linnet, iplot.lpp
Methods for interactive plotting 'iplot' for objects of class lpp and linnet.
- Mathematical operations are now supported for pixel images
on a linear network. See help(Math.linim)
- dirichlet.network, delaunay.network
The linear networks formed by the Dirichlet tessellation
and Delaunay triangulation.
- dirichlet.edges
The edges of the Dirichlet tessellation.
- selfcut.psp
Cut line segments where they cross each other.
- vertices.linnet
Extract the vertices (nodes) of the linear network.
- vertexdegree
Compute the degree of each vertex in a linear network.
- pixellate.linnet
Pixellate a linear network.
- subset.hyperframe
'subset' method for class 'hyperframe'.
- head.hyperframe, tail.hyperframe
'head' and 'tail' methods for hyperframes.
- clickdist
Measures the distance between two spatial locations clicked by the user.
- solapply, anylapply
wrappers for 'lapply' which return a list of class 'solist' or 'anylist'.
- Kmark
Weighted K-function.
Identical to 'markcorrint' and will eventually replace it.
- marks.tess, marks<-.tess, unmark.tess:
Extract or change the marks associated with the tiles of a tessellation.
- quantess
Quantile tessellation: divide space into pieces which contain
equal amounts of 'stuff'.
- nestsplit
Nested split
- integral
New generic function for integrating functions,
with methods for 'im', 'msr', 'linim' and 'linfun'.
- selfcut.psp
Cut line segments where they cross each other
- as.function.im
Convert a pixel image to a function(x,y).
- as.linnet.linim
Extract the linear network from a 'linim' object.
- pool.fv, pool.anylist
New methods for 'pool'
- Window.linnet
Extract the two-dimensional window containing a linear network.
SIGNIFICANT USER-VISIBLE CHANGES
- linnet, lpp
A linear network can now be built in 'sparse matrix' form
which requires much less memory.
- chicago
The Chicago street crimes data are now stored in 'sparse matrix' form.
To convert them to non-sparse form, use as.lpp(chicago, sparse=FALSE)
- kppm
The parametrisation of cluster models has been reorganised.
The scale parameter is now always called 'scale'.
Results should be backward-compatible.
- cauchy.estK, cauchy.estpcf, matclust.estK, matclust.estpcf,
thomas.estK, thomas.estpcf, vargamma.estK, vargamma.estpcf
The parametrisation of cluster models has been reorganised.
The scale parameter is now always called 'scale'.
- plot.kppm
Also plots the cluster kernel.
- density.ppp
New argument 'se' allows calculation of standard errors as well.
- plot.pp3
Now produces a genuine perspective view.
New arguments control the eye position for the perspective view.
- Emark, Vmark
These functions can now work with multiple columns of marks.
- pixellate.psp
Can now count the number of segments that intersect each pixel,
instead of the total length of intersection.
- linfun
If g = linfun(f, L),
the function f will always be called as f(x,y,seg,tp, ...)
It is no longer expected to handle the case where 'seg' and 'tp' are absent.
The resulting function g can now be called as g(X) where X is an lpp object,
or as g(x,y) or g(x,y,seg,tp) where x,y,seg,tp are coordinates.
- tess
New argument 'marks' allows marks to be associated with tiles.
- anova.lppm
Outdated argument 'override' has been removed.
- split<-.ppp
Preserves the original ordering of the data, if possible.
- MultiHard, MultiStrauss, MultiStraussHard, HierStrauss
Zero values in the interaction radii are now treated as NA.
Improved handling of missing arguments.
Printed output now respects options('width')
- linearKinhom, linearKcross.inhom, linearKdot.inhom,
linearpcfinhom, linearpcfcross.inhom, linearpcfdot.inhom
If the intensity argument lambda, lambdaI, lambdaJ, lambdadot
is a fitted point process model, the model is first updated
by re-fitting it to the data, before computing the fitted intensity.
- solutionset
The expression will be evaluated using pixel arithmetic (Math.im)
if it cannot be evaluated using eval.im.
- to.grey
Now uses better weights for the R, G, B channels.
- rVarGamma
Accelerated.
- summary.mppm, print.mppm
These functions now respect options('width') and spatstat.options('terse').
- print.quadrattest
Now respects options('width') and spatstat.options('terse').
- print.pp3
Now respects options('width')
- print.lpp
Now respects options('width') and options('digits').
- print.owin, print.im, print.summary.owin, print.summary.im
Now respect options('width').
- nnmean
Now yields a vector, instead of a 1-column matrix,
when there is only a single column of marks.
- pairdist.psp, crossdist.psp, nndist.psp
The option 'method="Fortran"' is no longer supported.
The default is 'method="C"'.
- [.hyperframe:
When a row of data is extracted with drop=TRUE, the result
belongs to class 'anylist'.
- installation of spatstat
A Fortran compiler is no longer needed to compile spatstat from source.
- hyperframe class
The internal structure of hyperframes has changed slightly:
columns of objects are now stored and returned as
lists of class 'anylist' or 'solist'.
There should be no change in behaviour.
- datasets
Internal format of the datasets
bdspots, bei, clmfires, demohyper, flu, gorillas, heather,
Kovesi, murchison, osteo, pyramidal, waterstriders
has changed slightly to use the classes 'anylist' and 'solist'.
There should be no change in behaviour.
- K3est
New argument 'ratio'.
- spatstat.options
New option 'par.points3d' sets default arguments for plot.pp3.
- diagnose.ppm
New arguments 'xlab', 'ylab', 'rlab' determine the labels
in the 4-panel plot, and new argument 'outer' controls their position.
The confusing default value for 'compute.sd' has been changed.
- iplot.layered
New argument 'visible' controls which layers are initially visible.
- plot.lpp
New argument 'show.window' controls whether to plot the containing window.
- textstring
Any number of spatial locations (x,y) can be specified,
with a corresponding vector of text strings.
- plot.hyperframe
New argument 'mar'
- plot.linnet
New argument 'do.plot'
- summary.hyperframe
Improved output.
- eval.linim
Improved scoping rules.
- pixellate.owin
Accelerated.
- summary.linnet
Now prints more information, and respects options('digits').
- rmpoispp, rmpoint
The vector of possible types of points will default to the 'names' vector
of the argument 'lambda', 'n', or 'f' where appropriate.
- rpoislpp
Argument 'L' can be omitted when lambda is a 'linim' or 'linfun'
- simulate.ppm, simulate.kppm, simulate.lppm, simulate.slrm
New argument 'drop': if nsim = 1 and drop=TRUE, the result is a point pattern
rather than a list containing one point pattern.
- runifdisc, runifpoint, rpoint, rpoispp, rmpoint, rmpoispp,
rMaternI, rMaternII, rSSI, rPoissonCluster, rGaussPoisson,
rstrat, rsyst, rcell, rthin, rNeymanScott, rMatClust, rThomas,
rCauchy, rVarGamma, rpoispp3, runifpoint3
New argument 'drop': if nsim = 1 and drop=TRUE, the result is a point pattern
rather than a list containing one point pattern.
- spatstat.options
New option 'units.paren' controls the type of parenthesis
enclosing the explanatory text about the unit of length,
in print.ppm, plot.fv, etc.
- closepairs, crosspairs
New option: what="ijd" returns only the indices i, j and the distance d
- rCauchy, rMatClust, rNeymanScott, rPoissonCluster, rThomas, rVarGamma
Argument names have changed.
BUG FIXES
- sumouter
A segmentation fault could occur if any data were NA.
Fixed.
- simulate.kppm
Simulation failed for log-Gaussian Cox processes (in simulate.kppm only)
with an error message from the RandomFields package.
Fixed.
- ppm, predict.ppm, profilepl
Crashed sometimes with message
"interaction evaluator did not return a matrix".
Fixed.
- lppm
step() did not work correctly on 'lppm' objects.
Fixed.
- quadscheme
If quadscheme() was called explicitly, with the stipulated number of tiles
exceeding the number of dummy points given, then the quadrature weights
were sometimes vastly inflated - total quadrature weight was
much larger than window area. Spotted by Ian Renner.
Fixed.
- predict.rhohat
Result was incorrect for data on a non-rectangular window
(and a warning was issued about incorrect vector length).
Fixed.
- Math.im
Unary operators did not work (e.g."-x")
Fixed.
- density.ppp
Crashed when at="points" if the dataset had exactly 1 point.
Fixed.
- rSSI
Crashed if nsim > 1.
Fixed.
- influence.ppm, leverage.ppm, dfbetas.ppm
Crashed or issued a warning if any quadrature points had
conditional intensity zero under the model (negative infinite values
of the sufficient statistic).
Fixed.
- clickppp, clickpoly
Did not work correctly in the RStudio display device.
Fixed.
- Iest
Ignored the arguments 'r' and 'eps'.
Fixed.
- markvario
Result was garbled, when X had more than one column of marks.
Fixed.
- rMatClust, rVarGamma, rCauchy, rNeymanScott
Result was a list, but not a 'solist', when nsim > 1.
Fixed.
- print.mppm, summary.mppm, subfits
Crashed if a Poisson interaction was implied but not given explicitly.
Fixed.
- Kest
Crashed if ratio=TRUE and the window was a rectangle.
Fixed.
- anova.ppm
Crashed sometimes with message 'models were not all fitted
to the same size of dataset'.
(This occurred if there were quadrature points with
conditional intensity equal to zero in some models but not in all models.)
Fixed.
- vcov.kppm
Occasionally ran out of memory.
Fixed.
- as.linim.linfun
Erroneously converted the pixel values to numeric values.
Fixed.
- as.owin.layered
Ignored layers with zero area.
Fixed.
- plot.ppm
Paused the plot between frames even when there was only one frame.
Fixed.
- plot.layered
Did not allocate space for legends of 'lpp' objects.
Fixed.
- plot.lpp
Ignored symbolmap arguments like 'cex'
and confused the arguments 'col' and 'cols'.
Fixed.
- plot.diagppm
Ignored add=TRUE in some cases.
Fixed.
- iplot.layered
Did not handle 'diagramobj' objects correctly.
Fixed.
- plot.yardstick
Changed arguments.
spatstat 1.41-0
OVERVIEW
- We thank Ahmed El-Gabbas, Ute Hahn, Aruna Jammalamadaka,
Ian Renner, Brian Ripley, Torben Tvedebrink and Sasha Voss
for contributions.
- Fixed a bug causing a segmentation fault.
- Standard errors for kernel estimates of intensity.
- Test for segregation.
- Tessellations may now have marks.
- Nested splitting.
- More support for cluster models. Reorganised parametrisation.
- Sparse data representation of linear networks.
- More support for data on a linear network.
- New datasets: 'spiders' and 'dendrite'.
- Improvements and bug fixes.
- spatstat no longer uses Fortran.
- spatstat no longer depends on the package 'scatterplot3d'.
- spatstat now imports (rather than 'suggests') the Matrix package.
- Nickname: 'Team Australia'
NEW DATASETS
- dendrite
Dendritic spines on the dendrite network of a neuron.
A point pattern on a linear network.
Generously contributed by Aruna Jammalamadaka.
- spiders
Spider webs on the mortar lines of a brick wall.
A point pattern on a linear network.
Generously contributed by Sasha Voss.
NEW FUNCTIONS
- segregation.test
Test of spatial segregation of types in a multitype point pattern.
- clusterfield, clusterkernel
Compute the cluster kernel (offspring density) of a cluster process model,
or compute the cluster field generated by superimposing copies
of the cluster kernel at specified locations.
- clusterradius
Compute the radius of the support of the offspring density
of a cluster process model.
- as.linnet.psp
Convert a line segment pattern to a linear network
by guessing the connectivity using a distance threshold.
- iplot.linnet, iplot.lpp
Methods for interactive plotting 'iplot' for objects of class lpp and linnet.
- Mathematical operations are now supported for pixel images
on a linear network. See help(Math.linim)
- dirichlet.network, delaunay.network
The linear networks formed by the Dirichlet tessellation
and Delaunay triangulation.
- dirichlet.edges
The edges of the Dirichlet tessellation.
- selfcut.psp
Cut line segments where they cross each other.
- vertices.linnet
Extract the vertices (nodes) of the linear network.
- vertexdegree
Compute the degree of each vertex in a linear network.
- pixellate.linnet
Pixellate a linear network.
- subset.hyperframe
'subset' method for class 'hyperframe'.
- head.hyperframe, tail.hyperframe
'head' and 'tail' methods for hyperframes.
- clickdist
Measures the distance between two spatial locations clicked by the user.
- solapply, anylapply
wrappers for 'lapply' which return a list of class 'solist' or 'anylist'.
- Kmark
Weighted K-function.
Identical to 'markcorrint' and will eventually replace it.
- marks.tess, marks<-.tess, unmark.tess:
Extract or change the marks associated with the tiles of a tessellation.
- quantess
Quantile tessellation: divide space into pieces which contain
equal amounts of 'stuff'.
- nestsplit
Nested split
- integral
New generic function for integrating functions,
with methods for 'im', 'msr', 'linim' and 'linfun'.
- selfcut.psp
Cut line segments where they cross each other
- as.function.im
Convert a pixel image to a function(x,y).
- as.linnet.linim
Extract the linear network from a 'linim' object.
- pool.fv, pool.anylist
New methods for 'pool'
- Window.linnet
Extract the two-dimensional window containing a linear network.
SIGNIFICANT USER-VISIBLE CHANGES
- linnet, lpp
A linear network can now be built in 'sparse matrix' form
which requires much less memory.
- chicago
The Chicago street crimes data are now stored in 'sparse matrix' form.
To convert them to non-sparse form, use as.lpp(chicago, sparse=FALSE)
- kppm
The parametrisation of cluster models has been reorganised.
The scale parameter is now always called 'scale'.
Results should be backward-compatible.
- cauchy.estK, cauchy.estpcf, matclust.estK, matclust.estpcf,
thomas.estK, thomas.estpcf, vargamma.estK, vargamma.estpcf
The parametrisation of cluster models has been reorganised.
The scale parameter is now always called 'scale'.
- plot.kppm
Also plots the cluster kernel.
- density.ppp
New argument 'se' allows calculation of standard errors as well.
- plot.pp3
Now produces a genuine perspective view.
New arguments control the eye position for the perspective view.
- Emark, Vmark
These functions can now work with multiple columns of marks.
- pixellate.psp
Can now count the number of segments that intersect each pixel,
instead of the total length of intersection.
- linfun
If g = linfun(f, L),
the function f will always be called as f(x,y,seg,tp, ...)
It is no longer expected to handle the case where 'seg' and 'tp' are absent.
The resulting function g can now be called as g(X) where X is an lpp object,
or as g(x,y) or g(x,y,seg,tp) where x,y,seg,tp are coordinates.
- tess
New argument 'marks' allows marks to be associated with tiles.
- anova.lppm
Outdated argument 'override' has been removed.
- split<-.ppp
Preserves the original ordering of the data, if possible.
- MultiHard, MultiStrauss, MultiStraussHard, HierStrauss
Zero values in the interaction radii are now treated as NA.
Improved handling of missing arguments.
Printed output now respects options('width')
- linearKinhom, linearKcross.inhom, linearKdot.inhom,
linearpcfinhom, linearpcfcross.inhom, linearpcfdot.inhom
If the intensity argument lambda, lambdaI, lambdaJ, lambdadot
is a fitted point process model, the model is first updated
by re-fitting it to the data, before computing the fitted intensity.
- solutionset
The expression will be evaluated using pixel arithmetic (Math.im)
if it cannot be evaluated using eval.im.
- to.grey
Now uses better weights for the R, G, B channels.
- rVarGamma
Accelerated.
- summary.mppm, print.mppm
These functions now respect options('width') and spatstat.options('terse').
- print.quadrattest
Now respects options('width') and spatstat.options('terse').
- print.pp3
Now respects options('width')
- print.lpp
Now respects options('width') and options('digits').
- print.owin, print.im, print.summary.owin, print.summary.im
Now respect options('width').
- nnmean
Now yields a vector, instead of a 1-column matrix,
when there is only a single column of marks.
- pairdist.psp, crossdist.psp, nndist.psp
The option 'method="Fortran"' is no longer supported.
The default is 'method="C"'.
- [.hyperframe:
When a row of data is extracted with drop=TRUE, the result
belongs to class 'anylist'.
- installation of spatstat
A Fortran compiler is no longer needed to compile spatstat from source.
- hyperframe class
The internal structure of hyperframes has changed slightly:
columns of objects are now stored and returned as
lists of class 'anylist' or 'solist'.
There should be no change in behaviour.
- datasets
Internal format of the datasets
bdspots, bei, clmfires, demohyper, flu, gorillas, heather,
Kovesi, murchison, osteo, pyramidal, waterstriders
has changed slightly to use the classes 'anylist' and 'solist'.
There should be no change in behaviour.
- K3est
New argument 'ratio'.
- spatstat.options
New option 'par.points3d' sets default arguments for plot.pp3.
- diagnose.ppm
New arguments 'xlab', 'ylab', 'rlab' determine the labels
in the 4-panel plot, and new argument 'outer' controls their position.
The confusing default value for 'compute.sd' has been changed.
- iplot.layered
New argument 'visible' controls which layers are initially visible.
- plot.lpp
New argument 'show.window' controls whether to plot the containing window.
- textstring
Any number of spatial locations (x,y) can be specified,
with a corresponding vector of text strings.
- plot.hyperframe
New argument 'mar'
- plot.linnet
New argument 'do.plot'
- summary.hyperframe
Improved output.
- eval.linim
Improved scoping rules.
- pixellate.owin
Accelerated.
- summary.linnet
Now prints more information, and respects options('digits').
- rmpoispp, rmpoint
The vector of possible types of points will default to the 'names' vector
of the argument 'lambda', 'n', or 'f' where appropriate.
- rpoislpp
Argument 'L' can be omitted when lambda is a 'linim' or 'linfun'
- simulate.ppm, simulate.kppm, simulate.lppm, simulate.slrm
New argument 'drop': if nsim = 1 and drop=TRUE, the result is a point pattern
rather than a list containing one point pattern.
- runifdisc, runifpoint, rpoint, rpoispp, rmpoint, rmpoispp,
rMaternI, rMaternII, rSSI, rPoissonCluster, rGaussPoisson,
rstrat, rsyst, rcell, rthin, rNeymanScott, rMatClust, rThomas,
rCauchy, rVarGamma
New argument 'drop'
- spatstat.options
New option 'units.paren' controls the type of parenthesis
enclosing the explanatory text about the unit of length,
in print.ppm, plot.fv, etc.
- closepairs, crosspairs
New option: what="ijd" returns only the indices i, j and the distance d
- rCauchy, rMatClust, rNeymanScott, rPoissonCluster, rThomas, rVarGamma
Argument names have changed.
BUG FIXES
- sumouter
A segmentation fault could occur if any data were NA.
Fixed.
- simulate.kppm
Simulation failed for log-Gaussian Cox processes (in simulate.kppm only)
with an error message from the RandomFields package.
Fixed.
- ppm, predict.ppm, profilepl
Crashed sometimes with message
"interaction evaluator did not return a matrix".
Fixed.
- lppm
step() did not work correctly on 'lppm' objects.
Fixed.
- quadscheme
If quadscheme() was called explicitly, with the stipulated number of tiles
exceeding the number of dummy points given, then the quadrature weights
were sometimes vastly inflated - total quadrature weight was
much larger than window area. Spotted by Ian Renner.
Fixed.
- predict.rhohat
Result was incorrect for data on a non-rectangular window
(and a warning was issued about incorrect vector length).
Fixed.
- Math.im
Unary operators did not work (e.g."-x")
Fixed.
- density.ppp
Crashed when at="points" if the dataset had exactly 1 point.
Fixed.
- rSSI
Crashed if nsim > 1.
Fixed.
- influence.ppm, leverage.ppm, dfbetas.ppm
Crashed or issued a warning if any quadrature points had
conditional intensity zero under the model (negative infinite values
of the sufficient statistic).
Fixed.
- clickppp, clickpoly
Did not work correctly in the RStudio display device.
Fixed.
- Iest
Ignored the arguments 'r' and 'eps'.
Fixed.
- markvario
Result was garbled, when X had more than one column of marks.
Fixed.
- rMatClust, rVarGamma, rCauchy, rNeymanScott
Result was a list, but not a 'solist', when nsim > 1.
Fixed.
- print.mppm, summary.mppm, subfits
Crashed if a Poisson interaction was implied but not given explicitly.
Fixed.
- Kest
Crashed if ratio=TRUE and the window was a rectangle.
Fixed.
- anova.ppm
Crashed sometimes with message 'models were not all fitted
to the same size of dataset'.
(This occurred if there were quadrature points with
conditional intensity equal to zero in some models but not in all models.)
Fixed.
- vcov.kppm
Occasionally ran out of memory.
Fixed.
- as.linim.linfun
Erroneously converted the pixel values to numeric values.
Fixed.
- as.owin.layered
Ignored layers with zero area.
Fixed.
- plot.ppm
Paused the plot between frames even when there was only one frame.
Fixed.
- plot.layered
Did not allocate space for legends of 'lpp' objects.
Fixed.
- plot.lpp
Ignored symbolmap arguments like 'cex'
and confused the arguments 'col' and 'cols'.
Fixed.
- plot.diagppm
Ignored add=TRUE in some cases.
Fixed.
- iplot.layered
Did not handle 'diagramobj' objects correctly.
Fixed.
- plot.yardstick
Changed arguments.
spatstat 1.40-0 (2014-12-31)
OVERVIEW
- We thank Markus Herrmann, Peter Kovesi, Andrew Lister,
Enrique Miranda, Tuomas Rajala, Brian Ripley, Dominic Schuhmacher
and Maxime Woringer for contributions.
- Important bug fixes.
- Mathematical operators now apply to images.
- Parametric estimates of relative risk from fitted point process models.
- Standard errors for relative risk (parametric and non-parametric).
- Kernel smoothing and rose diagrams for angular data.
- Perceptually uniform colour maps.
- Hierarchical interactions for multitype patterns.
- Hard core parameters in all interactions no longer need to be specified
and will be estimated from data.
- Improvements to analysis of deviance and model selection.
- New datasets.
- New vignette, summarising all datasets installed with spatstat.
- Tests and diagnostics now include a Monte Carlo option.
- Faster checking of large datasets.
- Faster simulations.
- Code for drawing diagrams (arrows, scale bars).
- Version nickname: 'Do The Maths'
NEW DATASETS
- bdspots
Breakdown spots on microelectronic capacitor electrodes.
Generously contributed by Prof Enrique Miranda.
- Kovesi
Colour maps with perceptually uniform contrast.
Generously contributed by Peter Kovesi.
NEW FUNCTIONS
- Mathematical operations are now supported for images.
For example: alpha <- atan(bei.extra$grad) * 180/pi
See help(Math.im)
- relrisk.ppm
Spatially-varying probabilities of different types of points
predicted by a fitted point process model.
- circdensity
Kernel density estimate for angular data
- rose
Rose diagram (rose of directions) for angular data
- nnorient
Nearest neighbour orientation distribution.
- AIC.ppm
Calculate AIC of a Gibbs model using Takeuchi's rule.
- interp.colours
Interpolate a sequence of colour values.
- anyDuplicated.ppp, anyDuplicated.ppx
Fast replacements for any(duplicated(x)) for point patterns.
- textstring, onearrow, yardstick
Objects representing a text string, an arrow, or a scale bar,
for use in drawing spatial diagrams.
- plot.imlist, image.imlist, contour.imlist
Methods for the new class 'imlist'
- [<-.layered, [[<-.layered
More support for class 'layered'
SIGNIFICANT USER-VISIBLE CHANGES
- (vignettes)
New vignette 'datasets' summarises all the datasets installed
with the spatstat package.
- relrisk
The function relrisk is now generic, with methods for ppp and ppm.
New argument 'relative' specifies whether to calculate the relative risk
or the absolute probability of each type of point.
New argument 'se' specifies whether to calculate standard errors.
- plot.im
The default colour map for plotting images,
specified by spatstat.options('image.colfun'),
has been changed to a perceptually uniform map.
- DiggleGratton, Fiksel, MultiHard, MultiStraussHard
The hard core distance parameters in these models
can now be omitted by the user, and will be estimated automatically
from data (by the 'self-starting' feature of interactions).
This was already true of Hardcore and StraussHard.
- Hybrid
Hybrid models now apply the 'self-starting' feature
to each component model.
- anova.ppm
Can now reconcile models fitted using different dummy points,
different values of 'rbord', different values of 'use.gam', etc.
- profilepl
New argument 'aic' makes it possible to optimise the parameters
by minimising AIC.
- profilepl
No longer requires values for parameters which are 'optional'
(such as the hard core distance).
- rmh, simulate.ppm, rmh.ppm, rmh.default
The Metropolis-Hastings algorithm now starts by deleting any points
in the initial state that are 'illegal' (i.e. whose conditional intensity
is equal to zero). This ensures that the result of rmh
never contains illegal points.
- runifpoint, rpoispp, rStrauss, rHardcore, rStraussHard,
rDiggleGratton, rDGS, runifdisc, rpoint, rMaternI, rMaternII, rSSI,
rPoissonCluster, rGaussPoisson, rstrat, rsyst, rcell, rthin, rjitter,
rNeymanScott, rMatClust, rThomas, rCauchy, rVarGamma, rmpoint, rmpoispp,
runifpointOnLines, rpoisppOnLines, runiflpp, rpoislpp, runifpointx,
rpoisppx, runifpoint3, rpoispp3
These random point pattern generators now have an argument 'nsim'
specifying the number of simulated realisations to be generated.
- pairorient
New argument 'cumulative'.
New algorithm to compute kernel estimate of probability density.
Default behaviour changed.
Argument 'units' has been renamed 'unit' for consistency.
Labels and descriptions of columns have been corrected.
- predict.ppm
New syntax (backward-compatible).
New argument 'se' replaces option 'type="se"'.
Old argument 'total' is deprecated: use 'window' and set 'type="count"'.
- cdf.test
The methods for class 'ppm' and 'lppm' now handle Gibbs models
and perform a Monte Carlo test in this case.
- lurking, diagnose.ppm
Lurking variable plot can now include simulation envelopes.
- rmh.ppm
New argument 'w' determines the window in which the simulated pattern
is generated.
- ppp
Accelerated.
- Gcom, Gres
When conditional=TRUE and restrict=TRUE, the Hanisch estimate
was not calculated exactly as described in Appendix E.1 of
Baddeley, Rubak and Moller (2011). The intensity was estimated
on the full window rather than the eroded window.
Fixed.
- step, drop1, add1, extractAIC
The AIC of a Gibbs model is now calculated using Takeuchi's rule
for the degrees of freedom.
- model.matrix.ppm, model.matrix.kppm
New argument 'Q' allows prediction at any desired locations.
- vcov.ppm
New argument 'fine' gives more control over computation.
- predict.ppm
For multitype models, when the result is a list of images,
the names of list entries are now identical to the mark levels
(e.g. "hickory" instead of "markhickory")
- print.slrm
Output now respects options('width')
- image.listof
New argument 'ribmar' controls margin space around the ribbon
when equal.ribbon=TRUE.
- integral.im
New argument 'domain' specifies the domain of integration.
- plot.fasp
New argument 'transpose' allows rows and columns to be exchanged.
- plot.im
The list 'ribargs' can now include the parameter 'labels'.
- rmh, rpoint, rpoispp, rmpoint, rmpoispp
Accelerated, for inhomogeneous processes.
- stienen
Now recognises the parameter 'lwd'.
- suffstat
Accelerated (also affects ppm with method='ho').
- Poisson, AreaInter, BadGey, Concom, DiggleGatesStibbard, DiggleGratton,
Fiksel, Geyer, Hardcore, Hybrid, LennardJones, MultiHard, MultiStrauss,
MultiStraussHard, OrdThresh, Ord, PairPiece, Pairwise, SatPiece,
Saturated, Softcore, Strauss, StraussHard, Triplets
These functions can now be printed (by typing the function name)
to give a sensible description of the required syntax.
- fitin
A plot of the fitted interpoint interaction of a point process model
e.g. plot(fitin(ppm(swedishpines ~ 1, Strauss(9))))
now shows the unit of length on the x-axis.
- fitin
Plots of the fitted interpoint interaction are now possible
for some higher-order interactions such as Geyer and AreaInter.
- anova.ppm
New argument 'warn' to suppress warnings.
- rmhmodel.ppm
Argument 'win' renamed 'w' for consistency with other functions.
- print.ppm
Printed output for the fitted regular parameters
now respects options('digits').
- print.ppm, print.summary.ppm
Output now respects options('width') and spatstat.options('terse')
- print.ppm
By default, standard errors are not printed
for a model fitted with method="logi" (due to computational load)
- plot.profilepl
Now recognises 'lty', 'lwd', 'col' etc
- vesicles, gorillas
Some of the raw data files for these datasets are also installed in spatstat
for demonstration and training purposes.
BUG FIXES
- rmh, rmh.ppm, rmh.default, simulate.ppm
The result of simulating a model with a hard core
did not necessarily respect the hard core constraint,
and simulation of a model with strong inhibition
did not necessarily converge.
This only happened if the first order trend was large,
the starting state (n.start or x.start) was not given,
and the number of iterations (nrep) was not very large.
It occurred because of a poor choice for the default starting state.
Bug was present since about 2010.
Fixed.
- markcorrint
Results were completely incorrect.
Bug introduced in spatstat 1.39-0, october 2014.
Fixed.
- Kinhom
Ignored argument 'reciplambda2' in some cases.
Bug introduced in spatstat 1.39-0, october 2014.
Fixed.
- relrisk
When at="pixels", a small fraction of pixel values were sometimes
wildly inaccurate, due to numerical errors. This affected the
range of values in the result, and therefore the appearance of plots.
Fixed.
- model.images
Crashed if the model was multitype.
Fixed.
- profilepl
Crashed in some cases when the interaction was multitype.
[Spotted by Andrew Lister.]
Fixed.
- profilepl
Crashed if the model involved covariates that were not
given in a 'data' argument.
Fixed.
- envelope.ppm
Crashed if global=TRUE and savefuns=TRUE.
Fixed.
- setminus.owin
Crashed if the result was empty and the input was polygonal.
Fixed.
- predict.ppm
Crashed sometimes when type="cif" and ngrid was very large.
Fixed.
- pixelquad
If X was a multitype point pattern, the result was mangled.
Fixed.
- relrisk
Did not accept a character string value for the argument 'case'.
Fixed.
- intensity.ppm
Format of result was incorrect for ppm(Y ~ 1) where Y is multitype.
Fixed.
- $<-.hyperframe
Columns containing character values were converted to factors.
Fixed.
- clickppp
Sometimes filled the window in solid black colour..
Fixed.
- plot.psp
Ignored 'show.all' in some cases.
Fixed.
- plot.ppp
Warned about NA values amongst the marks, even if there were no NA's
in the column(s) of marks selected by the argument 'which.marks'.
Fixed.
- stienen
Did not suppress the border circles when border=FALSE.
Fixed.
spatstat 1.39-1 (2014-10-24)
OVERVIEW
- Urgent bug fix.
- We thank Suman Rakshit and Brian Ripley for contributions.
BUG FIXES
- bdry.mask, convexhull
In R-devel only, these functions could return an empty window,
causing errors in other packages.
[Spotted by Brian Ripley.]
Fixed.
- project2segment
An error occurred if any line segments had length zero.
[Spotted by Suman Rakshit.]
Fixed.
spatstat 1.39-0 (2014-10-23)
OVERVIEW
- We thank Shane Frank, Shaaban Ghalandarayeshi, Ute Hahn,
Mahdieh Khanmohammadi, Nicoletta Nava, Jens Randel Nyengaard,
Sebastian Schutte, Rasmus Waagepetersen and Carl G. Witthoft
for contributions.
- ANOVA extended to Gibbs models.
- Improved algorithm for locally-scaled K-function.
- Leave-one-out calculation of fitted values in ppm objects.
- New dataset: presynaptic vesicles.
- Geometrical operations with windows and images.
- More edge corrections for K-function.
- Improved handling and plotting of 'fv' objects.
- Utilities for perspective views of surfaces.
- New classes 'anylist', 'solist' will ultimately replace 'listof'.
- Bug fixes.
- Version nickname: 'Smoke and Mirrors'
NEW DATASETS
- vesicles
Synaptic vesicles
(includes raw data files for training purposes)
NEW CLASSES
- anylist
List of objects.
(A replacement for 'listof')
- solist
List of two-dimensional spatial objects.
(A replacement for some uses of 'listof')
NEW FUNCTIONS
- perspPoints, perspLines, perspSegments, perspContour
Draw points and lines on a surface, as seen in perspective view.
- hopskel.test
Hopkins-Skellam test of CSR
- project2set
For each data point in a point pattern X, find the nearest
spatial location in a given window W.
- stienen, stienenset
Stienen diagrams
- dirichlet.vertices
Vertices of the Dirichlet tessellation
- discs
Union of discs.
Given a point pattern dataset recording the locations and diameters
of objects, find the region covered by the objects.
- increment.fv
Increments of a summary function: g(x) = f(x+h)-f(x-h).
- rotmean
Rotational average of pixel values in an image
- fardist
Distance from each pixel/data point to farthest part of window boundary
- circumradius.owin
Circumradius of a window
- rmax.Trans, rmax.Ripley
Compute the maximum distance 'r' for which the
translation edge correction and isotropic edge correction
are valid.
- is.grey
Determines whether a colour value is a shade of grey.
- harmonise
Convert several objects of the same class to a common format.
(New generic function with existing methods harmonise.im and harmonise.fv)
- area
New generic function, with methods for 'owin' and 'default'.
- Fhazard
Hazard rate of empty space function
- anylist, as.anylist, [.anylist, [<-.anylist, print.anylist, summary.anylist
Support for new class 'anylist'
- solist, as.solist, [.solist, [<-.solist, print.solist, summary.solist
Support for new class 'solist'
- plot.anylist, plot.solist
Plot methods for the classes 'anylist' and 'solist'
(Currently identical to 'plot.listof')
SIGNIFICANT USER-VISIBLE CHANGES
- anova.ppm
Now applies to Gibbs models as well as Poisson models,
using adjusted composite likelihood ratio test statistic.
- persp.im
If visible=TRUE, the algorithm will also calculate which pixels of x
are visible in the perspective view. This is useful for drawing
points or lines on a perspective surface.
- Kscaled
Improved algorithm [thanks to Ute Hahn.]
New arguments 'renormalise' and 'normpower' allow renormalisation
of intensity, similar to Kinhom.
- Kest
New option: correction="rigid" computes the rigid motion correction.
- pairwise interactions
Fitted parameters and other calculations for pairwise interaction models
DiggleGatesStibbard, DiggleGratton, Fiksel, Geyer, Strauss
may change slightly due to a change in handling numerical rounding effects.
- eval.fv
Functions no longer need to have exactly the same sequence of 'r' values.
They will now be made compatible using 'harmonise.fv'.
- fitted.ppm
New argument 'leaveoneout' allows leave-one-out calculation
of fitted intensity at original data points.
- Kinhom, Linhom
New argument 'leaveoneout' specifies whether the leave-one-out rule
should be applied when calculating the fitted intensities.
- crosspaircounts
Results may change slightly due to a change in handling numerical
rounding effects.
- Fest, Gest
New argument 'domain' supports bootstrap methods.
- plot.fv
New argument 'mathfont' determines the font (e.g. plain, italic, bold)
for mathematical expressions on the axes and in the legend.
Defaults to italic.
- scanpp
Upgraded to handle multiple columns of mark data.
- circumradius
The function 'circumradius' is now generic, with methods
for the classes 'owin' and 'linnet'.
- edge.Trans
New argument 'give.rmax'
- fvnames, plot.fv
The symbol '.a' is now recognised. It stands for 'all function values'.
- as.function.fv
Argument 'extrapolate' can have length 1 or 2.
- varblock
New argument 'confidence' determines the confidence level.
- $<-.fv
This can now be used to add an extra column to an 'fv' object
(previously it refused).
- minnndist, maxnndist
New argument 'positive'. If TRUE, coincident points are ignored:
the nearest-neighbour distance of a point is the distance to the
nearest point that does not coincide with the current point.
- plot.fv
Improved handling of 'shade' argument.
- Kmeasure
Now passes '...' arguments to as.mask()
- Ksector
Now allows start < 0.
New arguments 'units' and 'domain'.
- pairorient
New arguments 'units' and 'domain'.
- eroded.areas
New argument 'subset'
- disc
New argument 'delta'
- plot.plotppm
New argument 'pppargs'
- harmonise.fv, harmonise.im
These are now methods for the new generic 'harmonise'
- Fest, Gest
These functions now also compute the theoretical value of hazard
for a Poisson process, if correction = "km".
- with.fv
Improved mathematical labels.
- Gfox, Jfox
Improved mathematical labels.
- area.owin
This function is now a method for the new generic 'area'
- edges
Default for argument 'check' changed to FALSE.
BUG FIXES
- varblock
Calculations were incorrect if more than one column of
edge corrections was computed.
[Bug introduced in spatstat 1.21-1, november 2010.]
Fixed.
- varblock
Crashed if one of the quadrats contained no data points.
Fixed.
- lohboot
Interval was calculated wrongly when global=TRUE and fun="Lest" or "Linhom".
Fixed.
- nnmark
Crashed when at="points" if there was only a single column of marks.
[Spotted by Shane Frank.]
Fixed.
- plot.msr
Some elements of the plot were omitted or cut off.
Fixed.
- plot.msr
Did not work with 'equal.scales=TRUE'.
Fixed.
- plot.msr, augment.msr
Crashed if every data point was duplicated.
Fixed.
- as.im.owin
Crashed if X was a 1 x 1 pixel array.
Fixed.
- owin
Coordinates of polygon data were altered slightly when fix=TRUE.
[Spotted by Carl Witthoft.]
Fixed.
- objects of class 'fv'
Assigning a new value to names(x) or colnames(x) or dimnames(x)
would cause the internal data format to become corrupted.
Fixed.
- to.grey, complementarycolour
Did not work properly on 'colourmap' objects.
Fixed.
- Kest
Ignored argument 'var.approx' if the window was a rectangle.
Fixed.
- rmh.ppm, rmhmodel.ppm
Ignored the argument 'new.coef'.
[Spotted by Sebastian Schutte]
Fixed.
- as.function.fv
The meanings of 'extrapolate=TRUE' and 'extrapolate=FALSE' were swapped.
Fixed.
- varblock
Handled the case 'fun=Lest' incorrectly.
Fixed.
- [.fv
Sometimes garbled the internal data format, causing plot.fv to crash.
Fixed.
- range.fv
Sometimes returned NA even when na.rm=TRUE.
Fixed.
- Fest
Argument 'eps' was not interpreted correctly.
Fixed.
- plot.fv
Argument 'lwd' was not passed to legend()
- flipxy.owin
Sometimes deleted the name of the unit of length.
Fixed.
spatstat 1.38-1 (2014-08-28)
OVERVIEW
- We thank Ute Hahn and Xavier Raynaud for contributions.
- Urgent Bug Fixes.
- Nickname: 'Le Hardi'
NEW FUNCTIONS
- "[<-.fv", "$<-.fv"
Subset replacement methods for 'fv' objects.
SIGNIFICANT USER-VISIBLE CHANGES
- clarkevans.test
Simulations are now performed with a fixed number of points.
- plot.owin, plot.ppp, plot.psp, plot.im
The default size of the outer margin of white space has been
reduced.
- dclf.test
Improved information in printed output.
BUG FIXES
- update.ppm
Results were incorrect in several cases.
[Spotted by Xavier Raynaud.]
Bug introduced in spatstat 1.38-0.
Fixed.
- Kinhom, Linhom
Calculations were incorrect if 'lambda' was a fitted point process model.
[Spotted by Xavier Raynaud.]
Bug introduced in spatstat 1.38-0.
Fixed.
- envelope.envelope
Ignored the arguments 'global' and 'VARIANCE'.
Fixed.
- fv objects
If 'f' was an object of class 'fv', then an assignment like f$name <- NULL
mangled the internal format of the object 'f', leading to errors
in print.fv and plot.fv.
[Spotted by Ute Hahn.]
Fixed.
- split.ppp
split(X, A) where A is a rectangular tessellation,
produced errors if the window of 'A' did not include the window of 'X'.
[Spotted by Ute Hahn.]
Fixed.
- names<-.hyperframe
Mangled the internal format.
[Spotted by Ute Hahn.]
Fixed.
- plot.fv
y axis label was incorrect in some cases when the 'fv' object
had only a single column of function values.
[Spotted by Ute Hahn.]
Fixed.
spatstat 1.38-0 (2014-08-15)
OVERVIEW
- We thank Malissa Baddeley, Colin Beale, Oscar Garcia, Daniel Esser,
David Ford, Eric Gilleland, Andrew Hardegen, Philipp Hunziker,
Abdollah Jalilian, Tom Lawrence, Lore De Middeleer, Robin Milne,
Mike Porter, Suman Rakshit, Pablo Ramon, Jason Rudokas,
Christopher Ryan, Dominic Schuhmacher, Medha Uppala
and Rasmus Waagepetersen for contributions.
- spatstat now Requires the package 'goftest'
and Suggests the package 'Matrix'.
- New dataset: 'sporophores'
- Palm likelihood method for fitting cluster processes and Cox processes.
- Quasi-likelihood and weighted composite likelihood methods
for estimating trend in cluster processes and Cox processes.
- Further extensions to model formulas in ppm and kppm.
- Faster variance calculations for ppm objects.
- One-sided tests and one-sided envelopes of summary functions.
- Cramer-Von Mises and Anderson-Darling tests of spatial distribution.
- Cressie-Read test statistic in quadrat counting tests.
- Spatial cumulative distribution functions.
- Faster algorithm for point pattern matching.
- Improvements to plots.
- Increased support for envelopes.
- New generic functions 'Window', 'Frame' and 'domain'.
- Directional K-function and directional distribution.
- Raster calculations accelerated.
- Summary functions accelerated.
- Many improvements and bug fixes.
- Version nickname: 'Wicked Plot'
NEW DATASETS
- sporophores
Spatial pattern of three species of mycorrhizal fungi around a tree.
[Contributed by E. David Ford.]
NEW FUNCTIONS
- improve.kppm
Re-estimate the trend in a kppm (cluster or Cox) model
using quasi-likelihood or weighted first-order composite likelihood.
[Contributed by Abdollah Jalilian and Rasmus Waagepetersen.]
- Window, Window<-
Generic functions to extract and change the window of a spatial object
in two dimensions. Methods for ppp, psp, im, and many others.
- Frame, Frame<-
Generic functions to extract and change the containing rectangle ('frame')
of a spatial object in two dimensions.
- domain
Generic function to extract the spatial domain of a spatial object
in any number of dimensions.
- Ksector
Directional version of the K-function.
- pairorient
Point pair orientation distribution.
- spatialcdf
Compute the spatial cumulative distribution of a spatial covariate,
optionally using spatially-varying weights.
- cdf.test
[Supersedes 'kstest'.]
Test of goodness-of-fit of a Poisson point process model.
The observed and predicted distributions of the values of a
spatial covariate are compared using either the
Kolmogorov-Smirnov, Cramer-Von Mises or Anderson-Darling test.
- berman.test
Replaces 'bermantest'.
- harmonise.fv
Make several functions compatible.
- simulate.lppm
Simulate a fitted point process model on a linear network.
- subset.ppp, subset.lpp, subset.pp3, subset.ppx
Methods for 'subset', for point patterns.
- closepairs.pp3, crosspairs.pp3
Low-level functions to find all close pairs of points in three dimensions
- volume.linnet
Method for the generic 'volume'. Returns the length of the linear network.
- padimage
Pad the border of a pixel image.
- as.layered
Convert spatial data to a layered object.
- panel.contour, panel.image, panel.histogram
Panel functions for 'pairs' plots.
- range.fv, min.fv, max.fv
Range, minimum and maximum of function values.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm.formula
The left hand side of the formula can now be the name of
an object in the list 'data', or an expression involving such objects.
- ppm
The right hand side of the formula can now include
the symbol '.' representing all covariates in the list 'data'.
- ppm
New argument 'subset' makes it possible to fit the model
in a subset of the spatial domain defined by an expression.
- kppm
New option: method="palm", will fit the model by maximising Palm likelihood.
- pppdist
Substantially accelerated.
New argument 'auction' controls choice of algorithm.
- rhohat
New arguments 'weights' and 'horvitz' for weighted calculations.
- persp.im
Surface heights and colours can now be controlled by different images.
Option to draw a grey apron around the sides of the perspective plot.
Return value has a new attribute 'expand'.
- plot.listof
New arguments 'halign' and 'valign' give improved control
over the alignment of panels.
- plot.listof
If all components of the list are objects of class 'fv'
representing functions, then if equal.scales=TRUE, these
functions will all be plotted with the same axes
(i.e. the same xlim and the same ylim).
- envelope
The argument 'transform' is now processed by 'with.fv'
giving more options, such as 'transform=expression(. - r)'
- envelope, dclf.test, mad.test
One-sided tests and one-sided envelopes can now be produced,
by specifying the argument 'alternative'.
- dclf.test, mad.test
A pointwise test at fixed distance 'r' can now be performed
by setting rinterval = c(r,r).
- envelope
New arguments 'fix.n' and 'fix.marks' for envelope.ppp and envelope.ppm
make it easy to generate simulated patterns conditional on the
total number of points, or on the number of points of each type.
- quadrat.test
Can now calculate the Cressie-Read test statistic
instead of the Pearson X2 statistic.
- Kres, Gres, Kcom, Gcom, psst, psstA, psstG
New argument 'model' makes it easier to generate simulation envelopes
of the residual summary functions.
- layered, plot.layered
The layer plot arguments can include the argument '.plot'
specifying a function to perform the plotting instead of the
generic 'plot'.
- deriv.fv
New arguments make it possible to differentiate a periodic function.
- ppm
Argument 'data' or 'covariates' can now include entries
which are not spatial covariates, provided they do not appear
in the model formula.
- closepairs, crosspairs
These functions are now generic, with methods for 'ppp' and 'pp3'
- rLGCP
Updated to conform to new usage of RandomFields package.
Argument syntax has changed.
Now allows control over pixel resolution.
- bw.diggle
New arguments 'correction' and 'hmax' for controlling the calculation.
- predict.lppm
New argument 'new.coef' for computing predictions with a
different vector of model coefficients.
- predict.ppm
If 'locations' is a pixel image, its pixels determine the
spatial locations for prediction.
- cut.ppp
Argument 'z' can now be a window.
- split.ppp
Argument 'f' can now be a window.
- print.ppm, summary.ppm, coef.summary.ppm
The table of parameter estimates, standard errors and confidence intervals
now also includes the value of the (signed square root) Wald test statistic.
- plot.im
Now automatically detects problems in some Windows graphics displays
and tries to avoid them.
- plot.im
The position of axis tick marks alongside the colour ribbon
can now be controlled using the parameter 'at' in the argument 'ribargs'.
- plot.ppp
Can now plot numeric marks using characters chosen by 'pch' or 'chars'
with size determined by mark value.
- plot.ppp
New argument 'meansize' for controlling mark scale.
- hsvim, rgbim
New argument 'autoscale' causes automatic scaling of colour channel values.
- plot.ppp
If type='n', a legend is now displayed when x is a marked point pattern.
- whist
Accelerated by a factor of 5.
- Fest, Jest
Accelerated by a factor of 2 to 3.
- fryplot
Accelerated.
Now displays a legend if the point pattern is marked.
Now handles numerical marks nicely.
New argument 'axes'.
- frypoints
Accelerated.
New arguments 'to', 'from' and 'dmax'.
- duplicated.ppp
New option: rule = 'unmark'
- rjitter
Argument 'radius' now has a default.
- Smooth.msr
New argument 'drop'
- LambertW
Now handles NA and infinite values.
- update.ppm
Now handles formulae with a left-hand side.
- raster.x, raster.y, raster.xy
These functions can now handle images, as well as masks.
- Smooth.ppp
If the mark values are exactly constant, the resulting smoothed values
are now exactly constant.
- eval.im, eval.fv, eval.fasp
Argument 'envir' can now be a list, instead of an environment.
- plot.ppp
The printout (of the resulting symbol map object)
now displays the numerical value of the mark scale.
- with.fv
Improved mathematical labels.
- plot.fv
Improved mathematical labels on x axis.
- ppm
Improved error messages.
- vcov.ppm
Computations greatly accelerated for Hybrid interactions
and for Area-interaction models.
- vcov.kppm
Computations greatly accelerated (when fast=TRUE)
- interp.im
Argument 'x' can now be a point pattern.
- pool.envelope
Improved handling of text information.
- miplot
Improved layout.
- print.summary.ppp
Improved layout.
Now respects spatstat.options('terse')
- print.profilepl
Improved layout.
Now respects spatstat.options('terse')
- anova.ppm
Now respects spatstat.options('terse')
- print.fv, print.envelope
Now respect spatstat.options('terse') and options('width')
- summary.envelope
Now respects options('width')
- kstest, bermantest
These functions will soon be Deprecated.
They are retained only for backward compatibility.
BUG FIXES
- vcov.ppm
Sometimes gave wrong answers for Poisson models fitted by method='logi'.
Fixed.
- unnormdensity
If weights were missing, the density was normalised,
contrary to the documentation.
Fixed.
- logLik.ppm, anova.ppm, AIC
For models fitted by 'ippm', the number of degrees of freedom was incorrect.
Fixed.
- im.apply
Pixels outside the window were not assigned the value NA as they should.
Fixed.
- pixellate.owin
Crashed, unpredictably, if the pixel raster had unequal numbers
of rows and columns.
[Spotted by Rasmus Waagepetersen.]
Fixed.
- vcov.ppm
Crashed for pairwise interaction models fitted by method="logi".
Fixed.
- predict.ppm
Crashed for models fitted by method="logi"
if the model included external covariates.
Fixed.
- predict.ppm
Crashed if the argument 'covariates' or 'data' in the original call to 'ppm'
included entries that were not spatial covariates. [These entries were
ignored by ppm but caused predict.ppm to crash.]
Fixed.
- simulate.kppm, rNeymanScott, rThomas, rMatClust
Crashed randomly when simulating an inhomogeneous model.
[Spotted by Philipp Hunziker.]
Fixed.
- bw.diggle
In some extreme cases, generated an error message
about ‘NaN values in Foreign function call.’
[Spotted by Colin Beale.]
Fixed.
- textureplot
Crashed if 'spacing' was too large.
Fixed.
- superimpose.psp
Crashed if the result was empty.
Fixed.
- istat
Crashed with an error message about 'vars'.
Fixed.
- dirichlet, delaunay, delaunay.distance
Crashed in rare cases due to a problem in package 'deldir'.
[Spotted by Pierre Legendre.]
Fixed.
- rgbim, hsvim
Crashed if any argument was constant.
Fixed.
- scaletointerval
Crashed if x was constant.
Fixed.
- linnet, [.linnet
Crashed if the result contained only a single vertex.
[Spotted by Daniel Esser.]
Fixed.
- plot.fv
If some of the function values were NA,
they were replaced by fictitious values
(by linearly interpolating).
Fixed.
- crossdist.ppp
Ignored argument 'squared' if periodic=FALSE.
[Spotted by Mike Porter.]
Fixed.
- marks<-.ppp
Ignored argument 'drop'.
[Spotted by Oscar Garcia.]
Fixed.
- update.ppm
Sometimes did not respect the argument 'use.internal'.
Fixed.
- plot.rhohat
Did not respect the argument 'limitsonly'.
Fixed.
- contour.im
Argument 'axes' defaulted to TRUE, but FALSE was intended.
Fixed.
- print.hyperframe, as.data.frame.hyperframe
Column names were mangled if the hyperframe had a single row.
Fixed.
- as.psp.data.frame
Generated a warning about partially-matched names in a data frame.
[Spotted by Eric Gilleland.]
Fixed.
- plot.leverage.ppm
Generated a warning from 'contour.default'
if the leverage function was constant.
Fixed.
- plot.diagppm
Issued warnings about unrecognised graphics parameters.
Fixed.
- update.symbolmap
Discarded information about the range of input values.
Fixed.
- plot.fv
Label for y axis was garbled, if argument 'shade' was given.
Fixed.
- plot.ppp
The legend was sometimes plotted when it should not have been
(e.g. when add=TRUE).
Fixed.
- plot.listof, plot.im
In an array of plots, containing both images and other spatial objects,
the titles of the panels were not correctly aligned.
Fixed.
- plot.tess, plot.quadratcount
Ignored arguments like 'cex.main'.
Fixed.
- iplot
Navigation buttons (Left, Right, Up, Down, Zoom In, Zoom Out)
did not immediately refresh the plot.
Fixed.
- iplot.layered
Reported an error 'invalid argument type' if all layers were deselected.
Fixed.
spatstat 1.37-0 (2014-05-09)
OVERVIEW
- Ege Rubak is now a joint author of spatstat.
- We thank Peter Forbes, Tom Lawrence and Mikko Vihtakari for contributions.
- Spatstat now exceeds 100,000 lines of code.
- New syntax for point process models (ppm, kppm, lppm)
equivalent to syntax of lm, glm, ...
- Covariates in ppm and kppm can now be tessellations.
- Confidence intervals and prediction intervals for fitted models.
- Quasirandom point patterns and sequences.
- Plots using texture fill.
- Support for mappings from data to graphical symbols and textures.
- Automatic re-fitting of model in Ginhom, Kinhom, Finhom, Jinhom.
- Support for Mixed Poisson distribution.
- Interpretation of mark scale parameters has changed in plot.ppp
- Syntax of multitype interactions (eg MultiStrauss) has changed.
- Bug fix in Metropolis-Hastings simulation of 'StraussHard' models
- Changed default behaviour of perfect simulation algorithms.
- Improvements to layout of text output.
- Version nickname: 'Model Prisoner'
NEW CLASSES
- symbolmap
An object of class 'symbolmap' represents a mapping
from data to graphical symbols
- texturemap
An object of class 'texturemap' represents a mapping
from data to graphical textures.
NEW FUNCTIONS
- split.hyperframe, split<-.hyperframe
methods for split and split<- for hyperframes.
- dmixpois, pmixpois, qmixpois, rmixpois
(log-)normal mixture of Poisson distributions.
- vdCorput, Halton, Hammersley, rQuasi
quasirandom sequences and quasirandom point patterns.
- Smoothfun
create a function(x,y) equivalent to the result of Smooth.ppp
- minnndist, maxnndist
Faster ways to compute min(nndist(X)), max(nndist(X))
- add.texture
Draw a simple texture inside a specified region.
- textureplot
Display a factor-valued pixel image using texture fill.
- texturemap
Create a texture map
- plot.texturemap
Plot a texture map in the style of a legend
- symbolmap
Create a symbol map
- update.symbolmap
Modify a symbol map
- invoke.symbolmap
Apply symbol map to data values, and plot them
- plot.symbolmap
Plot the symbol map in the style of a legend
- as.owin.boxx
Converts a 'boxx' to an 'owin' if possible.
- ellipse
Create an elliptical window.
- clickbox
Interactively specify a rectangle, by point-and-click on a graphics device.
- complementarycolour
Compute the complementary colour value of a given colour value,
or the complementary colour map of a given colour map.
- gauss.hermite
Gauss-Hermite quadrature approximation to the expectation
of any function of a normally-distributed random variable.
- boundingbox
Generic function, replaces bounding.box
- edges
Extract boundary edges of a window.
Replaces and extends 'as.psp.owin'
- pixelcentres
Extract centres of pixels as a point pattern.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm, kppm, lppm
NEW SYNTAX FOR POINT PROCESS MODELS
The model-fitting functions 'ppm', 'kppm' and 'lppm' now accept
a syntax similar to 'lm' or 'glm', for example ppm(X ~ Z),
but still accept the older syntax ppm(X, ~Z).
To support both kinds of syntax, the functions 'ppm' and 'kppm'
are now generic, with methods for the classes 'formula', 'ppp' and 'quad'.
The 'formula' method handles a syntax like ppm(X ~ Z) while the
'ppp' method handles the old syntax ppm(X, ~Z).
Similarly 'lppm' is generic with methods for 'formula' and 'lpp'.
- ppm, kppm, lppm
Covariates appearing in the model formula can be objects
which exist in the R session, instead of always having to be
elements of the list ‘covariates’.
- ppm.formula, kppm.formula, lppm.formula
Formulae involving polynom() are now expanded, symbolically,
so that polynom(x, 3) becomes x + I(x^2) + I(x^3)
and polynom(x,y,2) becomes x + y + I(x^2) + I(x*y) + I(y^2).
This neatens the model output, and also makes it possible
for anova() and step() to add or delete single terms in the polynomial.
- predict.ppm
New argument 'interval' allows confidence intervals or prediction intervals
to be calculated.
- predict.ppm
New argument 'total' allows for prediction of the total number of points
in a specified region.
- plot.ppp, plot.lpp
For marked point patterns, a legend is automatically added
to the plot, by default. Arguments have changed: new arguments
include parameters of the legend, and an optional symbol map.
Result has changed: it is now an object of class 'symbolmap'.
- plot.ppp, plot.lpp
Interpretation of the parameters 'markscale' and 'maxsize'
has changed. The size of a circle in the plot is now defined
as the circle's diameter instead of its radius. (Size of
a square is measured, as before, by its side length).
- parres
Now handles the case where the fitted model is not separable
but its restriction to the given 'subregion' is separable.
- envelope
Now issues a warning if the usage of envelope() appears to be ‘invalid’
in the sense that the simulated patterns and the data pattern
have not been treated equally.
- Kinhom, Finhom, Ginhom, Jinhom
New argument 'update'.
If 'lambda' is a fitted model (class ppm or kppm) and update=TRUE,
the model is re-fitted to the data pattern, before the intensities
are computed.
- rDiggleGratton, rDGS, rHardcore, rStrauss, rStraussHard
By default the point pattern is now generated on
a larger window, and trimmed to the original window.
New argument expand=TRUE.
- MultiStrauss, MultiHard, MultiStraussHard
The syntax of these functions has changed.
The new code should still accept the old syntax.
- rhohat
rhohat.ppp and rhohat.quad have new argument 'baseline'
- ippm
Algorithm improved. Argument syntax changed.
- default.dummy, quadscheme
Dummy points can now be generated by a quasirandom sequence.
- plot.owin
The window can now be filled with one of 8 different textures.
Arguments changed.
- ppm, kppm
Covariates in the model can now be tessellations.
- [.im
New argument 'tight' allows the resulting image to be trimmed
to the smallest possible rectangle.
- [.psp, rlinegrid, rpoisline
These functions now handle binary mask windows.
- rotate
The user can specify the centre of rotation.
- rescale
rescale() and all its methods now have argument 'unitname'
which can be used to change the name of the unit of length.
- anova.ppm
Output format has been improved.
Number of columns of result has changed.
- print.ppp, print.summary.ppp, print.owin, print.summary.owin,
print.im, print.summary.im, print.fv, print.msr, print.profilepl
These functions now avoid over-running the text margin
(i.e. they respect options('width') where possible).
- layerplotargs<-
Now handles any spatial object, converting it to a 'layered' object.
- effectfun
Improved display in case se.fit=TRUE.
- scaletointerval
New argument 'xrange'
- contour.im
New argument 'show.all'.
Default value of 'axes' changed to FALSE.
- identify.ppp
Now handles multivariate marks.
- plot.listof
Improved layout.
New arguments 'hsep', 'vsep'.
Argument 'mar.panel' may have length 1, 2 or 4.
- plot.splitppp
This function is no longer identical to plot.listof.
Instead it is a much simpler function which just
calls plot.listof with equal.scales=TRUE.
- anova.ppm
Output is neater.
- plot.layered
New argument 'do.plot'
- plot.psp
New argument 'do.plot'
- as.psp.owin
New argument 'window'
- plot.im, contour.im, textureplot
New argument 'clipwin'
- plot.ppp
New argument 'clipwin'
- plot.msr
New argument 'how' allows density to be plotted as image and/or contour
- diagnose.ppm, plot.diagppm
More options for 'plot.neg'
- plot.leverage.ppm, plot.influence.ppm, plot.msr
Argument 'clipwin' can now be used to restrict the display
to a subset of the full data.
- [.hyperframe, [<-.hyperframe, $.hyperframe, $<-.hyperframe
These functions are now documented.
- leverage.ppm, influence.ppm, dfbetas.ppm
Resulting objects are now smaller (in memory size).
- print.ppm
Now indicates whether the irregular parameters 'covfunargs'
were optimised (by profilepl or ippm) or whether they were simply
provided by the user.
- plot.ppp
A point pattern with numerical marks can now be plotted as
filled dots with colours determined by the marks,
by setting pch=21 and bg=colourmap
- colourmap
Now handles dates and date-time values (of class 'Date' or 'POSIXt').
- plot.ppp, print.ppp, summary.ppp
Improved handling of dates and date-time values
(of class 'Date' or 'POSIXt') in the marks of a point pattern.
- cut.im
Now refuses to handle images whose pixel values are
factor, logical or character.
- centroid.owin
New argument 'as.ppp'
- superimpose
Improved default names for columns of marks.
- Softcore()
Improved printout.
- kppm, lgcp.estpcf, lgcp.estK
Adjusted to new structure of RandomFields package.
No change in syntax.
- data(murchison)
This dataset now belongs to class 'listof' so that it can be
plotted directly.
- data(clmfires)
The format of the covariate data has changed.
The objects 'clmcov100' and 'clmcov200' are now
elements of a list 'clmfires.extra'.
- bounding.box
This function is now Deprecated; it has been replaced
by the generic boundingbox().
- as.psp.owin
This function is now Deprecated; it has been replaced
and extended by the function edges().
- plot.kstest
Changed defaults so that the two curves are distinguishable.
- with.fv
Improved mathematical labels.
BUG FIXES
- intensity.quadratcount
Values were incorrect for a rectangular tessellation
(the matrix of intensities was transposed).
Fixed.
- rmh, simulate.ppm
Simulation of the Strauss-hard core model (StraussHard) was incorrect
(intensity of the simulated process was about 15% too low).
Bug introduced in spatstat 1.31-0 (January 2013).
- intensity.quadratcount
Crashed for a rectangular tessellation with only a single row or column.
Fixed.
- model.images.ppm
Crashed sometimes if the argument W was given.
Fixed.
- eval.im
Crashed when applied to images with only a single row or column.
Fixed.
- ppp, marks<-.ppp
If the marks were a vector of dates, they were erroneously
converted to numbers.
Fixed.
- ippm
Crashed if the model formula included an offset term
that was not a function.
Fixed.
- leverage.ppm
Crashed sometimes when the model had irregular parameters ('covfunargs').
Fixed.
- residuals.ppm
Crashed sometimes when type='score'.
Fixed.
- scaletointerval
Did not handle dates and date-time values correctly.
Fixed.
- rbind.hyperframe, as.list.hyperframe
Gave incorrect results for hyperframes with 1 row.
Fixed.
- Kinhom
Did not renormalise the result (even when renormalise=TRUE), in some cases.
Spotted by Peter Forbes.
Fixed.
- disc
If mask=TRUE the disc was erroneously clipped to the square [-1,1] x [-1,1].
Fixed.
- plot.fv
Sometimes shaded the wrong half of the graph
when the 'shade' coordinates were infinite.
Fixed.
- print.ppm
Gave an error message if the coefficient vector had length zero.
Fixed.
- vcov.ppm
Gave an error message if the coefficient vector had length zero.
Fixed.
- plot.distfun, as.im.distfun
These functions effectively ignored the argument 'invert'
in the original call to distfun.
Fixed.
- plot.msr
Ignored certain additional arguments such as 'pch'.
Fixed.
- cut.im
Crashed if the image had 1 row or 1 column of pixels.
Fixed.
- iplot.ppp
Crashed with message about missing object 'vals'.
Fixed.
- effectfun
Demanded a value for every covariate supplied in the original call to ppm,
even for covariates which were not used in the model.
Fixed.
- plot.listof, plot.hyperframe
When plotting 3D point patterns (class pp3), these functions
issued warnings about 'add' being an unrecognised graphics argument.
Fixed.
spatstat 1.36-0 (2014-02-18)
OVERVIEW
- We thank Sebastian Meyer, Kevin Ummer, Jean-Francois Coeurjolly,
Ege Rubak, Rasmus Waagepetersen, Oscar Garcia and Sourav Das
for contributions.
- Important change to package dependencies.
- Geometrical inconsistencies in polygons are now repaired automatically.
- Improved quadrature schemes and reduced bias in ppm.
- New vignette 'Summary of Recent Changes to Spatstat'.
- Approximation to K function and pcf for Gibbs models.
- Counterpart of 'apply' for lists of images.
- Hexagonal grids and tessellations.
- Extensions to scan test and Allard-Fraley cluster set estimator.
- Change the parameters of a fitted model before simulating it.
- Accelerated Kest, Kinhom for rectangular windows.
- Extensions and improvements to plotting functions.
- Improvements to labelling of 'fv' objects.
- New demo of summary functions.
- More methods for 'intensity'.
- Version nickname: 'Intense Scrutiny'
NEW FUNCTIONS
- Kmodel.ppm, pcfmodel.ppm
Compute approximation to K-function or pair correlation function
of a Gibbs point process model.
- im.apply
Apply a function to corresponding pixel values in several images.
- hexgrid, hextess
Create a hexagonal grid of points, or a tessellation of hexagonal tiles
- shift.tess, rotate.tess, reflect.tess, scalardilate.tess, affine.tess
Apply a geometrical transformation to a tessellation.
- quantile.ewcdf
Extract quantiles from a weighted cumulative distribution function.
- scanLRTS
Evaluate the spatially-varying test statistic for the scan test.
- pcfmulti
General multitype pair correlation function
- intensity.splitppp
Estimate intensity in each component of a split point pattern.
- intensity.quadratcount
Use quadrat counts to estimate intensity in each quadrat.
- as.owin.quadratcount, as.owin.quadrattest
Extract the spatial window in which quadrat counts were performed.
- reload.or.compute
Utility function for R scripts:
either reload results from file, or compute them.
- to.grey
Convert colour to greyscale.
- Smooth.im
Method for Smooth() for pixel images. Currently identical to blur().
- demo(sumfun)
Demonstration of nonparametric summary functions in spatstat.
SIGNIFICANT USER-VISIBLE CHANGES
- Package Dependencies
spatstat now "Imports" (rather than "Depends" on)
the libraries mgcv, deldir, abind, tensor, polyclip.
This means that these libraries are not accessible to the user
unless the user explicitly loads them by typing 'library(mgcv)' and so on.
- owin, as.owin
Polygon data are no longer subjected to strict checks on
geometrical validity (self-crossing points, overlaps etc.)
Instead, polygon geometry is automatically repaired.
- ppm
The default quadrature scheme for a point pattern
has been improved (in the case of a non-rectangular window)
to remove a possible source of bias.
- Performance
various parts of spatstat now run slightly faster.
- scan.test
Now handles multiple values of circle radius 'r'.
- plot.scan.test, as.im.scan.test
These functions can now give the optimal value of circle radius 'r'.
- pcfcross, pcfdot
Algorithms have been reimplemented using a single-pass kernel smoother
and now run much faster. Bandwidth selection rule improved.
- plot.listof, plot.splitppp
Default behaviour has changed: panels are now plotted on different scales.
- plot.listof, plot.splitppp
When 'equal.scales=TRUE' the panels are plotted on exactly equal scales
and are exactly aligned (under certain conditions).
- ppp, marks.ppp, marks<-.ppp
New argument 'drop' determines whether a data frame with a single column
will be converted to a vector.
- simulate.ppm, rmh.ppm, rmhmodel.ppm
New argument 'new.coef' allows the user to change the parameters
of a fitted model, before it is simulated.
- logLik.ppm
New argument 'new.coef' allows the user to evaluate the
loglikelihood for a different value of the parameter.
- clusterset
The argument 'result' has been renamed 'what'.
It is now possible to give multiple values to 'what'
so that both types of result can be computed together.
- residuals.ppm
Argument 'coefs' has been renamed 'new.coef' for consistency
with fitted.ppm etc.
- residuals.ppm
If drop=TRUE the window associated with the residuals
is now taken to be the domain of integration of the composite likelihood.
- intensity.ppp
Now has argument 'weights'
- density.ppp, Smooth.ppp, markmean, markvar, intensity.ppp
Argument 'weights' can now be an 'expression'.
- pcf
New argument 'domain' causes the computation to be restricted to
a subset of the window.
- nnclean
The result now has attributes which give the fitted parameter values,
information about the fitting procedure, and the histogram bar heights.
- nnclean
Extra arguments are now passed to hist.default.
- plot.tess
For a tessellation represented by a pixel image,
plot.tess no longer treats the pixel labels as palette colours.
- relrisk
New argument 'case' allows the user to specify which mark value
corresponds to the cases in a case-control dataset.
- Kinhom
Now accepts correction="good"
- spatstat.options
New option ('monochrome') controls whether plots generated by spatstat
will be displayed in colour or in greyscale. This will eventually be
applied to all plot commands in spatstat.
- plot.im, persp.im, contour.im, plot.owin, plot.psp, plot.fv, plot.fasp
These functions now obey spatstat.options('monochrome')
- plot.ppp, plot.owin, plot.im, plot.psp, plot.tess, plot.layered
New universal argument 'show.all' determines what happens
when a plot is added to an existing plot. If show.all = TRUE
then everything is plotted, including the main title and colour ribbon.
- plot.ppp
New argument 'show.window'
- plot.im
New arguments 'add' and 'do.plot'.
More arguments recognised by 'ribargs'
- plot.layered
New arguments 'add', 'main'
Better argument handling.
- plot.fv
Improved handling of argument 'shade'
- layered, layerplotargs, plot.layered
The plotting argument can now be a list of length 1,
which will be replicated to the correct length.
- varblock
Ugly legends have been repaired.
- quad.ppm
New argument 'clip'
- edge.Trans
New arguments 'dx', 'dy'
- disc
Argument 'centre' can be in various formats.
- affine, shift
Argument 'vec' can be in various formats.
- Geyer, BadGey
A warning is no longer issued when the parameter 'sat' is fractional.
- adaptive.density
Now has argument 'verbose'
- Smooth.ppp
'sigma' is now a formal argument of Smooth.ppp
- plot.quadratcount, plot.quadrattest
These functions have now been documented.
- Summary functions and envelopes
Improved mathematical labels in plots.
- Kest
Accelerated, in the case of a rectangular window.
- Kscaled
Argument 'lambda' can now be a fitted model (class ppm)
- print.fv
Improved layout.
- plot.bermantest
Improved graphics.
- which.max.im
This function is now deprecated.
which.max.im(x) is superseded by im.apply(x, which.max)
- smooth.ppp, smooth.fv, smooth.msr
These functions are now deprecated, in favour of 'Smooth' with a capital 'S'
BUG FIXES
- bw.ppl
Crashed if the point pattern had multiple points at the same location.
Fixed.
- quantile
Crashed when applied to the result of 'ewcdf'.
Fixed.
- marks<-.ppp
Crashed with a message about 'unrecognised format'
if the current or replacement values of marks
were date/time values (belonging to class 'Date' or 'POSIXt').
Fixed.
- plot.im
Crashed in case log=TRUE if the window was not a rectangle.
Fixed.
- vcov.ppm
Crashed sometimes for models with a hard core term
(Hardcore, StraussHard, MultiHard or MultiStrauss interactions).
Spotted by Rasmus Waagepetersen.
Fixed.
- multiplicity.data.frame
Results were incorrect and included NA's (spotted by Sebastian Meyer).
Fixed.
- markvar
Values were incorrect.
Fixed.
- Smooth.ppp
Ignored argument 'diggle'.
Fixed.
- rotate.im, affine.im
Factor-valued images were not handled correctly.
Fixed.
- shift.layered
If argument 'origin' was used, different layers were shifted by
different amounts.
Fixed.
- tile.areas
Sometimes returned a list instead of a numeric vector.
Fixed.
- print.ppp
If the marks were date/time values (belonging to class 'Date' or 'POSIXt'),
print.ppp reported that they were double precision numbers.
Fixed.
- plot.layered
Graphics were mangled if the argument 'add=FALSE' was given explicitly.
Fixed.
- Smooth.ppp
The argument 'sigma' was only recognised if it was explicitly named.
For example in 'Smooth(X, 5)' the '5' was ignored.
Fixed.
- clusterset
The bounding frame of the result was smaller than the
original bounding frame of the point pattern dataset,
when result="domain" and exact=TRUE.
Fixed.
- plot.im
Ignored argument 'col' if it was a 'function(n)'.
Fixed.
- Kinhom
Ignored argument 'correction' if there were more than 1000 points.
Fixed.
- [.fv
Mangled the plot label for the y axis.
Fixed.
- cbind.fv
Mangled the plot label for the y axis.
Fixed.
- plot.envelope
Main title was always 'x'.
Fixed.
- print.ppp
Ran over the right margin.
Fixed.
- union.owin, intersect.owin, setminus.owin
Sometimes deleted the name of the unit of length.
Fixed.
spatstat 1.35-0 (2013-12-12)
OVERVIEW
- We thank Melanie Bell, Leanne Bischof, Ida-Maria Sintorn,
Ege Rubak, Martin Hazelton, Oscar Garcia,
Rasmus Waagepetersen, Abdollah Jalilian
and Jens Oehlschlaegel for contributions.
- Support for analysing replicated spatial point patterns.
- New vignette on analysing replicated spatial point patterns.
- Objective function surface plots.
- Estimator of point process intensity using nearest neighbour distances.
- Improved estimator of pair correlation function.
- Four new datasets.
- Simple point-and-click interface functions for general use.
- More support for fv objects.
- More support for ppx objects.
- Extensions to nearest neighbour functions.
- Morphological operations accelerated.
- Bug fix to pair correlation functions.
- Bug fix to k-th nearest neighbour distances
- Version nickname: 'Multiple Personality'
NEW CLASSES
- mppm
An object of class 'mppm' represents a Gibbs point process model
fitted to several point pattern datasets. The point patterns may
be treated as independent replicates of the same point process,
or as the responses in an experimental design, so that the
model may depend on covariates associated with the design.
Methods for this class include print, plot, predict, anova and so on.
- objsurf
An object of class 'objsurf' contains values of the likelihood
or objective function in a neighbourhood of the maximum.
- simplepanel
An object of class 'simplepanel' represents a spatial arrangement of buttons
that respond to mouse clicks, supporting a simple, robust graphical interface.
NEW FUNCTIONS
- mppm
Fit a Gibbs model to several point patterns.
The point pattern data may be organised as a designed experiment
and the model may depend on covariates associated with the design.
- anova.mppm
Analysis of Deviance for models of class mppm
- coef.mppm
Extract fitted coefficients from a model of class mppm
- fitted.mppm
Fitted intensity or conditional intensity for a model of class mppm
- kstest.mppm
Kolmogorov-Smirnov test of goodness-of-fit for a model of class mppm
- logLik.mppm
log likelihood or log pseudolikelihood for a model of class mppm
- plot.mppm
Plot the fitted intensity or conditional intensity of a model of class mppm
- predict.mppm
Compute the fitted intensity or conditional intensity
of a model of class mppm
- quadrat.test
Quadrat counting test of goodness-of-fit for a model of class mppm
- residuals.mppm
Point process residuals for a model of class mppm
- subfits
Extract point process models for each individual point pattern dataset,
from a model of class mppm
- vcov.mppm
Variance-covariance matrix for a model of class mppm
- integral.msr
Integral of a measure.
- objsurf
For a model fitted by optimising an objective function, this command
computes the objective function in a neighbourhood of the optimal value.
- contour.objsurf, image.objsurf, persp.objsurf, plot.objsurf
Plot an 'objsurf' object.
- fvnames
Define groups of columns in a function value table, for use in plot.fv, etc
- multiplicity
New generic function for which multiplicity.ppp is a method.
- unique.ppx, duplicated.ppx, multiplicity.ppx
Methods for unique(), duplicated() and multiplicity() for 'ppx' objects.
These also work for 'pp3' and 'lpp' objects.
- closepairs, crosspairs, closepaircounts, crosspaircounts
Low-level functions for finding all close pairs of points
- nndensity
Estimate point process intensity using k-th nearest neighbour distances
- simplepanel, run.simplepanel
Support for a simple point-and-click interface for general use.
NEW DATASETS
- pyramidal
Diggle-Lange-Benes data on pyramidal neurons in cingulate cortex.
31 point patterns divided into 3 groups.
- waterstriders
Nummelin-Penttinen waterstriders data.
Three independent replicates of a point pattern formed by insects.
- simba
Simulated data example for mppm.
Two groups of point patterns with different interpoint interactions.
- demohyper
Simulated data example for mppm.
Point patterns and pixel image covariates, in two groups
with different regression coefficients.
SIGNIFICANT USER-VISIBLE CHANGES
- plot.hyperframe
The argument 'e' now has a different format.
Instead of plot(h, plot(XYZ)) one must now type plot(h, quote(plot(XYZ)))
This is necessary in order to avoid problems with 'S4 method dispatch'.
- pcf.ppp, pcfinhom
New argument 'divisor' enables better performance of the estimator
of pair correlation function for distances close to zero.
- applynbd
The arguments N, R and criterion may now be specified together.
- markstat
The arguments N and R may now be specified together.
- ppx
New argument 'simplify' allows the result to be converted to
an object of class 'ppp' or 'pp3' if appropriate.
- as.function.fv
Now allows multiple columns to be interpolated
- multiplicity.ppp
This function is now a method for the generic 'multiplicity'.
It has also been accelerated.
- nnfun.ppp, distfun.ppp
New argument 'k' allows these functions to compute k-th nearest neighbours.
- rVarGamma, kppm, vargamma.estK, vargamma.estpcf
New argument 'nu.pcf' provides an alternative way to specify
the kernel shape in the VarGamma model, instead of the existing
argument 'nu.ker'. Function calls that use the ambiguous argument
name 'nu' will no longer be accepted.
- nnmap
Image is now clipped to the original window.
- dilation, erosion, opening, closing
Polygonal computations greatly accelerated.
- plot.colourmap
Improved appearance and increased options, for discrete colourmaps.
- plot.msr
Improved appearance
- plot.ppp, plot.owin
An ‘empty’ plot can now be generated by setting type="n"
- nndist.ppp, nnwhich.ppp, nncross.ppp
Column names of the result are now more informative.
BUG FIXES
- nncross.ppp
Results were completely incorrect when k > 1.
Spotted by Jens Oehschlaegel.
Bug was introduced in spatstat 1.34-1.
Fixed.
- rVarGamma
Simulations were incorrect; they were generated using the wrong value
of the parameter 'nu.ker'. Spotted by Rasmus Waagepetersen and
Abdollah Jalilian. Bug was always present.
Fixed.
- pair correlation functions (pcf.ppp, pcfdot, pcfcross, pcfinhom, ...)
The result had a negative bias at the maximum 'r' value,
because contributions to the pcf estimate from interpoint distances
greater than max(r) were mistakenly omitted.
Spotted by Rasmus Waagepetersen and Abdollah Jalilian.
Bug was always present.
Fixed.
- demo(spatstat)
This demonstration script had some unwanted side-effects, such as
rescaling the coordinates of standard datasets 'bramblecanes',
'amacrine' and 'demopat', which caused the demonstration to crash
when it was repeated several times, and caused errors in demo(data).
Fixed.
- rmh
Visual debugger crashed sometimes with message 'XI not found'.
Fixed.
- predict.ppm
Crashed if the model was fitted using 'covfunargs'.
Fixed.
- bounding.box
Crashed if one of the arguments was NULL.
Fixed.
- multiplicity.ppp
Did not handle data frames of marks.
Fixed.
spatstat 1.34-1 (2013-11-03)
OVERVIEW
- We thank Kurt Hornik, Ted Rosenbaum, Ege Rubak and Achim Zeileis
for contributions.
- Important bug fix.
SIGNIFICANT USER-VISIBLE CHANGES
- as.box3
Now accepts objects of class 'ppx' or 'boxx'.
- crossdist.ppp, crossdist.pp3, crossdist.default
New argument 'squared' allows the squared distances to be computed
(saving computation time in some applications)
BUG FIXES
- union.owin, is.subset.owin, dilation.owin
Results were sometimes completely wrong for polygons with holes.
Spotted by Ted Rosenbaum.
Fixed.
- psstA, areaLoss
Crashed in some cases, with error message
'Number of items to replace is not a multiple of replacement length'.
Spotted by Achim Zeileis.
Fixed.
spatstat 1.34-0 (2013-10-24)
OVERVIEW
- We thank Andrew Bevan, Ege Rubak, Aruna Jammalamadaka,
Greg McSwiggan, Jeff Marcus, Jose M Blanco Moreno,
and Brian Ripley for contributions.
- spatstat and all its dependencies are now Free Open Source.
- spatstat does not require the package 'gpclib' any more.
- spatstat now depends on the packages 'tensor', 'abind' and 'polyclip'
- polygon clipping is now enabled always.
- Substantially more support for point patterns on linear networks.
- Faster computations for pairwise interaction models.
- Bug fixes in nearest neighbour calculations.
- Bug fix in leverage and influence diagnostics.
- Version nickname: "Window Cleaner"
- spatstat now requires R version 3.0.2 or later
NEW FUNCTIONS
- as.lpp
Convert data to a point pattern on a linear network.
- distfun.lpp
Distance function for point pattern on a linear network.
- eval.linim
Evaluate expression involving pixel images on a linear network.
- linearKcross, linearKdot, linearKcross.inhom, linearKdot.inhom
Multitype K functions for point patterns on a linear network
- linearmarkconnect, linearmarkequal
Mark connection function and mark equality function
for multitype point patterns on a linear network
- linearpcfcross, linearpcfdot, linearpcfcross.inhom, linearpcfdot.inhom
Multitype pair correlation functions for point patterns on a linear network
- linfun
New class of functions defined on a linear network
- nndist.lpp, nnwhich.lpp, nncross.lpp
Methods for nndist, nnwhich, nncross for point patterns on a linear network
- nnfun.lpp
Method for nnfun for point patterns on a linear network
- vcov.lppm
Variance-covariance matrix for parameter estimates of a fitted
point process model on a linear network.
- bilinearform
Computes a bilinear form
- tilenames, tilenames<-
Extract or change the names of tiles in a tessellation.
SIGNIFICANT USER-VISIBLE CHANGES
- package dependencies
Previous versions of spatstat used the package 'gpclib'
to perform geometrical calculations on polygons.
Spatstat now uses the package 'polyclip' for polygon calculations instead.
- free open-source licence
The restrictive licence conditions of 'gpclib' no longer apply
to users of spatstat. Spatstat and all its dependencies are now
covered by a free open-source licence.
- polygon clipping
In previous versions of spatstat, geometrical calculations
on polygons could be performed 'exactly' using gpclib
or 'approximately' using pixel discretisation.
Polygon calculations are now always performed 'exactly'.
- intersect.owin, union.owin, setminus.owin
If A and B are polygons, the result is a polygon.
- erosion, dilation, opening, closing
If the original set is a polygon, the result is a polygon.
- intersect.tess, dirichlet
The tiles of the resulting tessellation are polygons
if the input was polygonal.
- plot.owin
Polygons with holes can now be plotted with filled colours
on any device.
- lppm
New arguments 'eps' and 'nd' control the quadrature scheme.
- pairwise interaction Gibbs models
Many calculations for these models have been accelerated.
BUG FIXES
- nncross.pp3
Values were completely incorrect in some cases.
Usually accompanied by a warning about NA values.
(Spotted by Andrew Bevan.)
Fixed.
- nnmap, nnmark
A small proportion of pixels had incorrect values.
[These were the pixels lying on the boundary of a Dirichlet cell.]
Fixed.
- leverage.ppm, influence.ppm, dfbetas.ppm
Results were incorrect for non-Poisson processes.
Fixed.
- distcdf
Results were incorrect in some cases
when W was a window and V was a point pattern.
Fixed.
- Kcross, Kdot, pcfcross, pcfdot
Results were incorrect in some rare cases.
Fixed.
- as.fv.kppm
Erroneously returned a NULL value.
Fixed.
- vcov.ppm
For point process models fitted with method = 'logi',
sometimes crashed with error "object 'fit' not found".
(Spotted by Ege Rubak).
Fixed.
- vcov.ppm
For multitype point process models, sometimes crashed
with error "argument 'par' is missing".
Fixed.
- plot.im
Crashed if some of the pixel values were infinite.
Fixed.
- owin
owin(poly=..) crashed if there were NA's in the polygon coordinates.
Spotted by Jeff Marcus.
Fixed.
- plot.fv
Crashed, giving an incomprehensible error,
if the plot formula contained a number with a decimal point.
Fixed.
- alltypes
Crashed if envelopes=TRUE and global=TRUE,
with error message 'csr.theo not found'.
Spotted by Jose M Blanco Moreno.
Fixed.
- chop.tess, rMosaicField
Format of result was garbled in some cases.
Fixed.
- vcov.ppm
Sometimes gave an irrelevant warning "parallel option not available".
Fixed.
spatstat 1.33-0 (2013-09-05)
OVERVIEW
- We thank Kurt Hornik and Brian Ripley for advice.
- The package namespace has been modified.
- Numerous internal changes.
- Likelihood cross-validation for smoothing bandwidth.
- More flexible models of intensity in cluster/Cox processes.
- New generic function for smoothing.
- Version nickname: 'Titanic Deckchair'
NEW FUNCTIONS
- bw.ppl
Likelihood cross-validation technique
for bandwidth selection in kernel smoothing.
- is.lppm, is.kppm, is.slrm
Tests whether an object is of class 'lppm', 'kppm' or 'slrm'
- Smooth
New generic function for spatial smoothing.
- Smooth.ppp, Smooth.fv, Smooth.msr
Methods for Smooth
(identical to smooth.ppp, smooth.fv, smooth.msr respectively)
- fitted.kppm
Method for 'fitted' for cluster/Cox models
SIGNIFICANT USER-VISIBLE CHANGES
- namespace
The namespace of the spatstat package has been changed.
- internal functions
Some undocumented internal functions are no longer visible,
as they are no longer exported in the namespace. These functions
can still be accessed using the form spatstat:::functionname.
Functions that are not visible are not guaranteed to exist
or to remain the same in future.
- methods
For some generic functions defined in the spatstat package,
it is possible that R may fail to find one of the methods
for the generic. This is a temporary problem due to a restriction
on the size of the namespace in R 3.0.1. It will be fixed in
future versions of R and spatstat. It only applies to methods
for a generic which is a spatstat function (such as nndist)
and does not apply to methods for generics defined elsewhere
(such as density). In the meantime, if this problem should occur,
it can be avoided by calling the method explicitly, in the form
spatstat:::genericname.classname.
- speed
The package should run slightly faster overall, due to the
improvement of the namespace, and changes to internal code.
- envelope
New argument 'envir.simul' determines the environment
in which to evaluate the expression 'simulate'.
- kppm
More flexible models of the intensity, and greater control over the
intensity fitting procedure, are now possible using the arguments
'covfunargs', 'use.gam', 'nd', 'eps' passed to ppm.
Also the argument 'X' may now be a quadrature scheme.
- distcdf
Arguments W and V can now be point patterns.
- Kest
New option: correction = "good"
selects the best edge correction that can be computed in reasonable time.
- bw.diggle
Accelerated.
- predict.ppm
Calculation of standard error has been accelerated.
- smooth.ppp, smooth.fv, smooth.msr
These functions will soon be 'Deprecated' in favour of
the methods Smooth.ppp, Smooth.fv, Smooth.msr respectively.
- stratrand, overlap.owin, update.slrm, edge.Trans, edge.Ripley
These already-existing functions are now documented.
BUG FIXES
- kppm, matclust.estpcf, pcfmodel
The pair correlation function of the Matern Cluster Process
was evaluated incorrectly at distances close to 0.
This could have affected the fitted parameters
in matclust.estpcf() or kppm(clusters="MatClust").
Fixed.
- anova.ppm
Would cause an error in future versions of R
when 'anova.glm' is removed from the namespace.
Fixed.
spatstat 1.32-0 (2013-08-13)
OVERVIEW
- We thank Ege Rubak for major contributions.
- Thanks also to Patrick Donnelly, Andrew Hardegen,
Tom Lawrence, Robin Milne, Gopalan Nair and Sean O'Riordan.
- New 'logistic likelihood' method for fitting Gibbs models.
- Substantial acceleration of several functions
including profile maximum pseudolikelihood
and variance calculations for Gibbs models.
- Nearest neighbours for point patterns in 3D
- Nearest-neighbour interpolation in 2D
- New 'progress plots'
- Hard core thresholds can be estimated automatically.
- More support for colour maps
- More support for 'fv' objects
- Spatstat now has version nicknames.
The current version is "Logistical Nightmare".
- Minor improvements and bug fixes.
NEW FUNCTIONS
- nncross.pp3
Method for 'nncross' for point patterns in 3D
- nnmark
Mark of nearest neighbour - can be used for interpolation
- dclf.progress, mad.progress
Progress plots (envelope representations) for the DCLF and MAD tests.
- deriv.fv
Numerical differentiation for 'fv' objects.
- interp.colourmap
Smooth interpolation of colour map objects - makes it easy to build
colour maps with gradual changes in colour
- tweak.colourmap
Change individual colour values in a colour map object
- beachcolourmap
Colour scheme appropriate for ‘altitudes’ (signed numerical values)
- as.fv
Convert various kinds of data to an 'fv' object
- quadscheme.logi
Generates quadrature schemes for the logistic method of ppm.
- beginner
Introduction for beginners.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
New option: method = "logi"
Fits a Gibbs model by the newly developed 'logistic likelihood' method
which is often faster and more accurate than maximum pseudolikelihood.
Code contributed by Ege Rubak.
- profilepl
Greatly accelerated, especially for area-interaction models.
- vcov.ppm
Greatly accelerated for higher-order interaction models.
- smooth.ppp
Now handles bandwidths equal to zero (by invoking 'nnmark')
- Hardcore, StraussHard
The hard core distance 'hc' can now be omitted;
it will be estimated from data.
- plot.ppp
Now behaves differently if there are multiple columns of marks.
Each column of marks is plotted, in a series of separate plots
arranged side-by-side.
- plot.im
Argument 'col' can now be a function
- lohboot
Now computes confidence intervals for L-functions as well
(fun="Lest" or fun="Linhom")
- dclf.test, mad.test
The argument X can now be an object produced by a previous call
to dclf.test or mad.
- plot.fv
Labelling of plots has been improved in some cases.
- smooth.fv
Further options added.
- density.ppp
The argument 'weights' can now be a matrix.
- smooth.ppp
Accelerated, when there are several columns of marks.
- density.ppp
Accelerated slightly.
- simulate.ppm, simulate.kppm
The total computation time is also returned.
- simulate.kppm
Now catches errors (such as 'insufficient memory').
- latest.news, licence.polygons
Can now be executed by typing the name of the function without parentheses.
- latest.news
The text is now displayed one page at a time.
BUG FIXES
- Hest, Gfox, Jfox
The 'raw' estimate was not computed correctly (or at least
it was not the raw estimate described in the help files).
Spotted by Tom Lawrence.
Fixed.
- edges2vees
Format of result was incorrect if there were fewer than 3 edges.
Fixed.
- Jfox
The theoretical value (corresponding to independence between X and Y)
was erroneously given as 0 instead of 1.
Spotted by Patrick Donnelly.
Fixed.
- ppm, quadscheme, default.dummy
If the grid spacing parameter 'eps' was specified,
the quadrature scheme was sometimes slightly incorrect
(missing a few dummy points near the window boundary).
Fixed.
- print.timed
Matrices were printed incorrectly.
Fixed.
spatstat 1.31-3 (2013-05-27)
OVERVIEW
- spatstat now 'Suggests' the package 'tensor'
- Code slightly accelerated.
- More support for pooling of envelopes.
- Bug fixes.
NEW FUNCTIONS
- nnmap
Given a point pattern, finds the k-th nearest point in the pattern
from each pixel in a raster.
- coef.fii, coef.summary.fii
Extract the interaction coefficients of a fitted interpoint interaction
- edges2vees
Low-level function for finding triples in a graph.
SIGNIFICANT USER-VISIBLE CHANGES
- predict.ppm
New argument 'correction' allows choice of edge correction
when calculating the conditional intensity.
- pool.envelope
New arguments 'savefuns' and 'savepatterns'.
- pool.envelope
Envelopes generated with VARIANCE=TRUE can now be pooled.
- pool.envelope
The plot settings of the input data are now respected.
- Numerous functions have been slightly accelerated.
BUG FIXES
- predict.ppm
Calculation of the conditional intensity omitted the edge correction
if correction='translate' or correction='periodic'.
Fixed.
- shift.lpp, rotate.lpp, scalardilate.lpp, affine.lpp,
shift.linnet, rotate.linnet, scalardilate.linnet, affine.linnet
The enclosing window was not correctly transformed.
Fixed.
- rHardcore, rStraussHard, rDiggleGratton, rDGS
The return value was invisible.
Fixed.
- ppm
In rare cases the results obtained with forcefit=FALSE and forcefit=TRUE
were different, due to numerical rounding effects.
Fixed.
spatstat 1.31-2 (2013-04-26)
OVERVIEW
- We thank Robin Corria Anslie, Julian Gilbey, Kiran Marchikanti,
Ege Rubak and Thordis Linda Thorarinsdottir for contributions.
- spatstat now depends on R 3.0.0
- More support for linear networks
- More functionality for nearest neighbours
- Bug fix in fitting Geyer model
- Performance improvements and bug fixes
NEW FUNCTIONS
- affine.lpp, shift.lpp, rotate.lpp, rescale.lpp, scalardilate.lpp
Geometrical transformations for point patterns on a linear network
- affine.linnet, shift.linnet, rotate.linnet,
rescale.linnet, scalardilate.linnet
Geometrical transformations for linear networks
- [.linnet
Subset operator for linear networks
- timed
Records the computation time taken
SIGNIFICANT USER-VISIBLE CHANGES
- nncross
nncross.ppp can now find the k-th nearest neighbours, for any k.
- nndist, nnwhich
New argument 'by' makes it possible to find nearest neighbours
belonging to specified subsets in a point pattern, for example,
the nearest neighbour of each type in a multitype point pattern.
- [.fv
Now handles the argument 'drop'.
- with.fv
Argument 'drop' replaced by new argument 'fun'
(with different interpretation).
- [.lpp
Subset index may now be a window (class 'owin')
- Kest
Options correction='border' and correction='none'
now run about 4 times faster, thanks to Julian Gilbey.
- density.ppp
Numerical underflow no longer occurs when sigma is very small
and 'at="points"'. A warning is no longer issued.
Thanks to Robin Corria Anslie.
- crossing.psp
New argument 'fatal' allows the user to handle empty intersections
- union.owin
It is now guaranteed that if A is a subset of B, then union.owin(A,B)=B.
- plot.colourmap
Now passes arguments to axis() to control the plot.
Appearance of plot improved.
- image.listof
Now passes arguments to plot.colourmap() if equal.ribbon=TRUE.
- kppm
Accelerated (especially for large datasets).
- plot.envelope
plot.envelope is now equivalent to plot.fv and is essentially redundant.
- rThomas, rMatClust, rNeymanScott
Improved explanations in help files.
- All functions
Many functions have been slightly accelerated.
BUG FIXES
- ppm
Results were incorrect for the Geyer saturation model
with a non-integer value of the saturation parameter 'sat'.
Spotted by Thordis Linda Thorarinsdottir.
Bug introduced in spatstat 1.20-0, July 2010.
Fixed.
- ppm
Fitting a stationary Poisson process using a nonzero value of 'rbord',
as in "ppm(X, rbord=R)" with R > 0, gave incorrect results.
Fixed.
- predict.slrm
Crashed with message
'longer object length is not a multiple of shorter object length'
if the original data window was not a rectangle.
Fixed.
- iplot
Main title was sometimes incorrect.
Fixed.
- plot.layered
Ignored argument 'main' in some cases.
Fixed.
- plot.listof, image.listof
Crashed sometimes with a message 'figure margins too large'
when equal.ribbon=TRUE.
Fixed.
- print.ppx
Crashed if the object contained local coordinates.
Fixed.
- transect.im
Crashed if the transect lay partially outside the image domain.
Fixed.
- rthin
Crashed if X was empty.
Fixed.
- max.im, min.im, range.im
Ignored additional arguments after the first argument.
Fixed.
- update.lppm
Updated object did not remember the name of the original dataset.
Fixed.
- envelope
Grey shading disappeared from plots of envelope objects
when the envelopes were transformed using eval.fv or eval.fasp.
Fixed.
spatstat 1.31-1 (2013-03-01)
OVERVIEW
- We thank Marcelino de la Cruz, Daniel Esser, Jason Goldstick,
Abdollah Jalilian, Ege Rubak and Fabrice Vinatier for contributions.
- Nonparametric estimation and tests for
point patterns in a linear network.
- More support for 'layered' objects.
- Find clumps in a point pattern.
- Connected component interaction model.
- Improvements to interactive plots.
- Visual debugger for Metropolis-Hastings algorithm.
- Bug fix in Metropolis-Hastings simulation of Geyer process.
- Faster Metropolis-Hastings simulation.
- Faster computation of 'envelope', 'fv' and 'fasp' objects.
- Improvements and bug fixes.
NEW FUNCTIONS
- connected.ppp
Find clumps in a point pattern.
- kstest.lpp, kstest.lppm
The spatial Kolmogorov-Smirnov test can now be applied
to point patterns on a linear network (class 'lpp') and
point processes on a linear network (class 'lppm').
- bermantest.lpp, bermantest.lppm
Berman's Z1 and Z2 tests can now be applied to point patterns
on a linear network (class 'lpp') and point processes on a linear
network (class 'lppm').
- rhohat.lpp, rhohat.lppm
Nonparametric estimation of the dependence of a point pattern
on a spatial covariate: 'rhohat' now applies to
objects of class 'lpp' and 'lppm'.
- intensity.lpp
Empirical intensity of a point pattern on a linear network.
- as.function.rhohat
Converts a 'rhohat' object to a function,
with extrapolation beyond the endpoints.
- [.layered
Subset operator for layered objects.
- shift, rotate, affine, rescale, reflect, flipxy, scalardilate
These geometrical transformations now work for 'layered' objects.
- iplot.layered
Interactive plotting for 'layered' objects.
- as.owin.layered
Method for as.owin for layered objects.
- [.owin
Subset operator for windows, equivalent to intersect.owin.
- rcellnumber
Generates random integers for the Baddeley-Silverman counterexample.
- is.lpp
Tests whether an object is a point pattern on a linear network.
- is.stationary.lppm, is.poisson.lppm
New methods for is.stationary and is.poisson for class 'lppm'
- sessionLibs
Print library names and version numbers (for use in Sweave scripts)
SIGNIFICANT USER-VISIBLE CHANGES
- iplot
iplot is now generic, with methods for 'ppp', 'layered' and 'default'.
iplot methods now support zoom and pan navigation.
- rmh.default
New argument 'snoop' allows the user to activate a visual debugger
for the Metropolis-Hastings algorithm.
- connected
connected() is now generic, with methods for 'im', 'owin' and 'ppp'.
- alltypes
Now works for lpp objects
- rlabel
Now works for lpp, pp3, ppx objects
- plot.kstest
Can now perform P-P and Q-Q plots as well.
- plot.fasp
New argument 'samey' controls whether all panels
have the same y limits.
- plot.fasp
Changed default value of 'samex'.
- Objects of class 'envelope', 'fv' and 'fasp'
Reduced computation time and storage required for these objects.
- pcfmodel.kppm
Improved calculation.
- plot.fv
Improved collision-avoidance algorithm
(for avoiding overlaps between curves and legend)
- ppm
Improved error handling
- envelope
All methods for 'envelope' now handle fun=NULL
- setminus.owin
Better handling of the case where both arguments are rectangles.
- rmh
Simulation has been further accelerated.
- lppm
Accelerated.
- vcov.ppm
Accelerated.
- marktable
Accelerated.
- Triplets() interaction
Accelerated.
- alltypes
Accelerated when envelope=TRUE.
BUG FIXES
- rmh
Simulation of the Geyer saturation process was incorrect.
[Bug introduced in previous version, spatstat 1.31-0.]
Fixed.
- rmh
Simulation of the Geyer saturation process was
incorrectly initialised, so that the results of a short run
(i.e. small value of 'nrep') were incorrect,
while long runs were correct.
[Bug introduced in spatstat 1.17-0, october 2009.]
Fixed.
- ppm
Objects fitted with use.gam=TRUE caused fatal errors in
various functions including print, summary, vcov and model.frame.
Spotted by Jason Goldstick.
Fixed.
- lpp, runiflpp, rpoislpp
Empty point patterns caused an error.
Fixed.
- rmh.default
Crashed for hybrid models, with message
'Attempt to apply non-function'.
Spotted by Ege Rubak.
Fixed.
- relrisk
Crashed when 'at="points"' for a multitype pattern
with more than 2 types.
Spotted by Marcelino de la Cruz.
Fixed.
- erosion.owin, dilation.psp, border
Ignored the arguments "..." in some cases
(namely when the window was polygonal and 'gpclib' was disabled).
Fixed.
- rsyst, rcell
Did not correctly handle the argument 'dx'.
Spotted by Fabrice Vinatier.
Fixed.
- correction="trans"
Various functions such as Kest
no longer recognised 'correction = "trans"'.
Fixed.
- istat
Crashed with an error message about envelopes.
Fixed.
- summary.ppm, print.ppm
p-values which were exactly equal to zero were reported as NA.
Fixed.
- [.im
Crashed if the intersection consisted of
a single row or column of pixels.
Fixed.
- plot.im
Sometimes incorrectly displayed an image consisting of
a single row or column of pixels.
Fixed.
- plot.layered
The plot region was determined by the first layer,
so that objects in subsequent layers could sometimes
fall outside the plot region.
Fixed.
- transect.im
If the arguments 'from' and 'to' were numeric vectors of length 2,
the result was garbled.
Fixed.
- Inhomogeneous K functions and pair correlation functions
[Kinhom, pcfinhom, Kcross.inhom, Kdot.inhom, pcfcross.inhom, etc.]
These functions reported an error 'lambda is not a vector'
if the intensity argument lambda was computed using density(, at="points").
Fixed.
- rlabel
Did not accept a point pattern with a hyperframe of marks.
Fixed.
- alltypes
Crashed when envelope=TRUE if the summary function 'fun'
did not have default values for the marks i and j.
Fixed.
- Kres, Gres, psst, psstA
Ignored the unit of length.
Fixed.
spatstat 1.31-0 (2013-01-17)
OVERVIEW
- We thank Frederic Lavancier and Ege Rubak for contributions.
- Major bug fix in simulation of area-interaction process.
- Metropolis-Hastings simulations accelerated.
- Rounding of spatial coordinates
- clmfires dataset corrected.
- Bug fixes and minor improvements.
NEW FUNCTIONS
- round.ppp
Round the spatial coordinates of a point pattern
to a specified number of decimal places.
- rounding
Determine whether a dataset has been rounded.
SIGNIFICANT USER-VISIBLE CHANGES
- rmh
Simulation of the following models has been accelerated:
areaint, dgs, diggra, fiksel, geyer, hardcore, lennard, multihard,
strauss, straush, straussm, strausshm.
- rmh
The transition history of the simulation (which is saved if 'track=TRUE')
now also contains the value of the Hastings ratio for each proposal.
- clmfires
The clmfires dataset has been modified to remove errors and inconsistencies.
- plot.linim
Appearance of the plot has been improved, when style='width'.
- summary.ppm
Now reports whether the spatial coordinates have been rounded.
- dclf.test, mad.test
The range of distance values ('rinterval') used in the test
is now printed in the test output, and is saved as an attribute.
BUG FIXES
- rmh
Simulation of the Area-Interaction model was completely incorrect.
Spotted by Frederic Lavancier.
The bug was introduced in spatstat version 1.23-6 or later.
Fixed.
- dclf.test
The test statistic was incorrectly scaled (by a few percent).
This did not affect the p-value of the test.
Fixed.
- ppx
If argument 'coord.type' was missing, various errors occurred:
a crash may have occurred, or the results may have depended
on the storage type of the data.
Spotted by Ege Rubak.
Fixed.
- plot.ppx
Crashed for 1-dimensional point patterns.
Spotted by Ege Rubak.
Fixed.
spatstat 1.30-0 (2012-12-23)
OVERVIEW
- We thank Jorge Mateu, Andrew Bevan, Olivier Flores, Marie-Colette van Lieshout, Nicolas Picard and Ege Rubak for contributions.
- The spatstat manual now exceeds 1000 pages.
- Hybrids of point process models.
- Five new datasets
- Second order composite likelihood method for kppm.
- Inhomogeneous F, G and J functions.
- Delaunay graph distance
- Fixed serious bug in 'lppm' for marked patterns.
- bug fix in some calculations for Geyer model
- Improvements to linear networks code
- Pixel images can now be displayed with a logarithmic colour map.
- spatstat now formally 'Depends' on the R core package 'grDevices'
- miscellaneous improvements and bug fixes
NEW DATASETS
- clmfires
Forest fires in Castilla-La Mancha
- gordon
People sitting on the grass in Gordon Square, London
- hyytiala
Mixed forest in Hyytiala, Finland (marked by species)
- paracou
Kimboto trees in Paracou, French Guiana (marked as adult/juvenile)
- waka
Trees in Waka national park (marked with diameters)
NEW FUNCTIONS
- Hybrid
The hybrid of several point process interactions
[Joint research with Jorge Mateu and Andrew Bevan]
- is.hybrid
Recognise a hybrid interaction or hybrid point process model.
- Finhom, Ginhom, Jinhom
Inhomogeneous versions of the F, G and J functions
[Thanks to Marie-Colette van Lieshout]
- delaunay.distance
Graph distance in the Delaunay triangulation.
- distcdf
Cumulative distribution function of the distance between
two independent random points in a given window.
- bw.frac
Bandwidth selection based on window geometry
- shortside.owin, sidelengths.owin
Side lengths of (enclosing rectangle of) a window
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
Can now fit models with 'hybrid' interactions
[Joint research with Jorge Mateu and Andrew Bevan]
- kppm
Now has the option of fitting models using Guan's (2006)
second order composite likelihood.
- envelope.lpp
Now handles multitype point patterns.
- envelope.envelope
New argument 'transform' allows the user to apply a transformation
to previously-computed summary functions.
- runifpointOnLines, rpoisppOnLines, runiflpp, rpoislpp
Can now generate multitype point patterns.
- rmhmodel, rmh, simulate.ppm
Now handle point process models with 'hybrid' interactions.
- kppm
Accelerated, and more reliable, due to better choice of starting values
in the optimisation procedure.
- kppm
The internal format of kppm objects has changed.
- minimum contrast estimation
Error messages from the optimising function 'optim' are now trapped
and handled.
- rhohat
This command is now generic, with methods for ppp, quad, and ppm.
- raster.x, raster.y, raster.xy
These functions have a new argument 'drop'
- summary.ppm
Improved behaviour when the model covariates are a data frame.
- progressreport
Output improved.
- second order summary functions
(Kest, Lest, Kinhom, pcf.ppp, Kdot, Kcross, Ldot etc etc)
These functions now accept correction="translation" as an
alternative to correction = "translate", for consistency.
- plot.im
New argument 'log' allows colour map to be equally spaced on a log scale.
- as.owin.ppm, as.owin.kppm
New argument 'from' allows the user to extract the spatial window
of the point data (from="points") or the covariate images (from="covariates")
- dclf.test, mad.test
The rule for handling tied values of the test statistic has been changed.
The tied values are now randomly ordered to obtain a randomised integer rank.
- with.fv
New argument 'enclos' allows evaluation in other environments
BUG FIXES
- lppm
For multitype patterns, the fitted model was completely incorrect
due to an error in constructing the quadrature scheme.
Fixed.
- Geyer
For point process models with the 'Geyer' interaction,
vcov.ppm() and suffstat() sometimes gave incorrect answers.
[Spotted by Ege Rubak.]
Fixed.
- as.im.im
Did not correctly handle factor-valued images
if one of the arguments 'dimyx', 'eps', 'xy' was given.
Fixed.
- envelope.lppm
Crashed if the model was multitype.
Fixed.
- lpp
Did not handle empty patterns.
Fixed.
- density.ppp
If 'sigma' was a bandwidth selection function such as bw.scott()
which returned a numeric vector of length 2, a warning message was issued,
and the smoothing bandwidth was erroneously taken to be
the first element of the vector.
Fixed.
- Fest, Jcross, Jdot, Jmulti
If these functions were computed using correction = 'rs',
plotting them would sometimes give an error,
with the message "no finite x/y limits".
Fixed.
- pcfmodel.kppm
For models with clusters="VarGamma"
the value of the pcf at distance r=0 was given as NaN.
Fixed.
- vcov.ppm
Result was incorrect in rare cases, due to numerical rounding effects.
Fixed.
- rLGCP, simulate.kppm
For models fitted to point patterns in an irregular window,
simulation sometimes failed, with a message that the image 'mu'
did not cover the simulation window.
(Spotted by George Limitsios.)
Fixed.
- rLGCP, simulate.kppm
Crashed sometimes with an error about unequal x and y steps
(from 'GaussRF').
Fixed.
spatstat 1.29-0 (2012-10-14)
OVERVIEW
- We thank Colin Beale, Li Haitao, Frederic Lavancier, Erika Mudrak and Ege Rubak for contributions.
- random sequential packing
- Allard-Fraley estimator
- method for pooling several quadrat tests
- better control over dummy points in ppm
- more support for data on a linear network
- nearest neighbour map
- changes to subsetting of images
- improvements and bug fixes
NEW FUNCTIONS
- clusterset
Allard-Fraley estimator of high-density features in a point pattern
- pool.quadrattest
Pool several quadrat tests
- nnfun
Nearest-neighbour map of a point pattern or a line segment pattern
- as.ppm
Converts various kinds of objects to ppm
- crossdist.lpp
Shortest-path distances between pairs of points in a linear network
- nobs.lppm
Method for 'nobs' for lppm objects.
- as.linim
Converts various kinds of objects to 'linim'
- model.images.slrm
Method for model.images for slrm objects
- rotate.im
Rotate a pixel image
SIGNIFICANT USER-VISIBLE CHANGES
- "[.im" and "[<-.im"
New argument 'j' allows any type of matrix indexing to be used.
- "[.im"
Default behaviour changed in the case of a rectangular subset.
New argument 'rescue' can be set to TRUE to reinstate previous behaviour.
- rSSI
Performs 'Random Sequential Packing' if n=Inf.
- ppm
New argument 'eps' determines the spacing between dummy points.
(also works for related functions quadscheme, default.dummy, ...)
- fitted.ppm, predict.ppm
Argument 'new.coef' specifies a vector of parameter values
to replace the fitted coefficients of the model.
- lppm
Stepwise model selection using step() now works for lppm objects.
- vcov.slrm
Can now calculate correlation matrix or Fisher information matrix
as well as variance-covariance matrix.
- eval.fv
Improved behaviour when plotted.
- "[.fv"
Improved behaviour when plotted.
- lohboot
When the result is plotted, the confidence limits are now shaded.
- lohboot
New argument 'global' allows global (simultaneous) confidence bands
instead of pointwise confidence intervals.
- vcov.ppm
Accelerated by 30% in some cases.
- quadrat.test.splitppp
The result is now a single object of class 'quadrattest'
- progressreport
Improved output (also affects many functions which print progress reports)
- Full redwood data (redwoodfull)
Plot function redwoodfull.extra$plotit has been slightly improved.
- nncross
This function is now generic, with methods for 'ppp' and 'default'.
- distfun
The internal format of objects of class 'distfun' has been changed.
- duplicated.ppp, unique.ppp
New argument 'rule' allows behaviour to be consistent with package 'deldir'
BUG FIXES
- bdist.tiles
Values were incorrect in some cases due to numerical error.
(Spotted by Erika Mudrak.)
Fixed.
- vcov.ppm, suffstat
These functions sometimes gave incorrect values
for marked point process models.
Fixed.
- simulate.ppm, predict.ppm
Did not correctly handle the 'window' argument. (Spotted by Li Haitao).
Fixed.
- smooth.ppp, markmean
If sigma was very small, strange values were produced, due to
numerical underflow. (Spotted by Colin Beale).
Fixed.
- MultiHard, MultiStrauss, MultiStraussHard
Crashed if the data point pattern was empty.
(Spotted by Ege Rubak).
Fixed.
- vcov.ppm
Crashed sporadically, with multitype interactions.
(Spotted by Ege Rubak).
Fixed.
- rStrauss, rHardcore, rStraussHard, rDiggleGratton, rDGS
If the simulated pattern was empty, these functions would either
crash, or return a pattern containing 1 point.
(Spotted by Frederic Lavancier).
Fixed.
- model.matrix.slrm
Crashed if the model was fitted using split pixels.
Fixed.
- residuals.ppm, diagnose.ppm
Did not always correctly handle models that included offset terms.
Fixed.
- project.ppm
When a model was projected by project.ppm or by ppm(project=TRUE),
the edge corrections used the projected models were sometimes different
from the edge corrections in the original model, so that the
projected and unprojected models were not comparable.
Fixed.
- plot.listof, plot.splitppp
Crashed sometimes due to a scoping problem.
Fixed.
- dclf.test, mad.test
Crashed if any of the function values were infinite or NaN.
Fixed.
- psstA
Default plot did not show the horizontal line at y=0
corresponding to a perfect fit.
Fixed.
- vcov.ppm
names attribute was spelt incorrectly in some cases.
Fixed.
spatstat 1.28-2 (2012-08-23)
OVERVIEW
- We thank Thomas Bendtsen, Ya-Mei Chang, Daniel Esser,
Robert John-Chandran, Ege Rubak and Yong Song for contributions.
- New code for Partial Residual Plots and Added Variable Plots.
- maximum profile pseudolikelihood computations vastly accelerated.
- New dataset: cells in gastric mucosa
- now possible to capture every k-th state of Metropolis-Hastings algorithm.
- size of 'ppm' objects reduced.
- scope of 'intensity.ppm' extended.
- quadrat.test can now perform Monte Carlo tests and one/two-sided tests
- improvements to 'plot.fv'
- improvement to 'rescale'
- some datasets reorganised.
- numerous bug fixes
NEW DATASET
- mucosa
Cells in gastric mucosa
Kindly contributed by Dr Thomas Bendtsen
NEW FUNCTIONS
- parres
Partial residual plots for spatial point process models.
A diagnostic for the form of a covariate effect.
- addvar
Added variable plots for spatial point process models.
A diagnostic for the existence of a covariate effect.
SIGNIFICANT USER-VISIBLE CHANGES
- profilepl
Accelerated (typically by a factor of 5).
- rmh, rmhcontrol
It is now possible to save every k-th iteration of the Metropolis-Hastings
algorithm. The arguments 'nsave' and 'nburn' may be given to rmh
or to rmhcontrol. They specify that the point pattern will be saved
every 'nsave' iterations, after an initial burn-in of 'nburn' iterations.
- simulate.ppm
New argument 'singlerun' determines whether the simulated patterns
are generated using independent runs of the Metropolis-Hastings algorithm
or are obtained by performing one long run of the algorithm and saving
every k-th iteration.
- exactMPLEstrauss
New argument 'project' determines whether the parameter gamma
is constrained to lie in [0,1].
- intensity.ppm
Now works for stationary point process models with the interactions
DiggleGratton, DiggleGatesStibbard, Fiksel, PairPiece and Softcore.
- plot.fv
Improved algorithm for avoiding collisions between graphics and legend.
- plot.fv
New argument 'log' allows plotting on logarithmic axes.
- envelope
Can now calculate an estimate of the true significance level
of the "wrong" test (which declares the observed summary function
to be significant if it lies outside the pointwise critical boundary
anywhere). Controlled by new argument 'do.pwrong'.
- quadrat.test
New argument 'alternative' allows choice of alternative hypothesis
and returns one-sided or two-sided p-values as appropriate.
- quadrat.test
Can now perform Monte Carlo test as well
(for use in small samples where the chi^2 approximation is inaccurate)
- Softcore
Improved numerical stability.
New argument 'sigma0' for manual control over rescaling.
- rescale
If scale argument 's' is missing, then the data are rescaled
to native units. For example if the current unit is 0.1 metres,
coordinates will be re-expressed in metres.
- psst
Extra argument 'verbose=TRUE'
- is.subset.owin
Accelerated for polygonal windows
- rmh.default
'track' is no longer a formal argument of rmh.default; it is now a
parameter of rmhcontrol. However there is no change in usage:
the argument 'track' can still be given to rmh.default.
- clf.test
Has been renamed 'dclf.test'
to give proper attribution to Peter Diggle.
- betacells
This dataset has been restructured. The vector of cell profile areas,
formerly given by betacells.extra$area, has now been included
as a column of marks in the point pattern 'betacells'.
- ants
The function ants.extra$plot() has been renamed plotit()
for conformity with other datasets.
- redwoodfull
The function redwoodfull.extra$plot() has been renamed plotit()
for conformity with other datasets.
- nbfires
For conformity with other datasets, there is now an object nbfires.extra
BUG FIXES
- ripras
Expansion factor was incorrect in the rectangular case.
Fixed.
- Triplets
Crashed sometimes with error "dim(X) must have positive length".
Fixed.
- affine.im
Crashed in the case of a diagonal transformation matrix!
Spotted by Ege Rubak.
Fixed.
- envelope.envelope
Ignored the argument 'global'.
Fixed.
- MultiStraussHard
The printed output showed the hardcore radii as NULL.
Spotted by Ege Rubak.
Fixed.
- "[.psp"
Crashed if the data were generated by rpoisline().
Spotted by Marcelino de la Cruz.
Fixed.
- plot.linim
If style="colour", the main title was always "x".
Fixed.
- plot.ppx
Setting add=TRUE did not prevent the domain being plotted.
Fixed.
- rmh
Crashed if x.start was an empty point pattern.
Spotted by Ege Rubak.
Fixed.
- as.ppp.data.frame
Crashed if any points lay outside the window.
Spotted by Ege Rubak.
Fixed.
- Ripley isotropic edge correction
Divide-by-zero error in rare cases.
Spotted by Daniel Esser.
Fixed.
- summary functions
For many of the summary functions (e.g. Kest, pcf),
the result of saving the object to disc was an enormous file.
Spotted by Robert John-Chandran.
Fixed.
- pcf.fv
Default plot was wrongly coloured.
Fixed.
spatstat 1.28-1 (2012-06-29)
OVERVIEW
- We thank Ege Rubak, Gopal Nair, Jens Oehlschlaegel and Mike Zamboni
for contributions.
- New approximation to the intensity of a fitted Gibbs model.
- Minor improvements and bug fixes
- spatstat now 'Suggests' the package 'gsl'
NEW FUNCTIONS
- intensity, intensity.ppp, intensity.ppm
Calculate the intensity of a dataset or fitted model.
Includes new approximation to the intensity of a fitted Gibbs model
- LambertW
Lambert's W-function
SIGNIFICANT USER-VISIBLE CHANGES
- envelope
Improved plot labels for envelopes that were generated using
the 'transform' argument.
- plot.fv
Improved algorithm for collision detection.
- plot.im
Now returns the colour map used.
- plot.listof, plot.splitppp
Slight change to handling of plot.begin and plot.end
- square
Now accepts vectors of length 2
- plot.fii
Increased resolution of the plot obtained from plot(fitin(ppm(...)))
- image.listof
If equal.ribbon=TRUE, the colour ribbon will no longer be
displayed repeatedly for each panel,
but will now be plotted only once, at the right hand side of the plot array.
BUG FIXES
- vcov.ppm
Results were sometimes incorrect for a Gibbs model with non-trivial trend.
Spotted by Ege Rubak.
Fixed.
- nncross
In rare cases the results could be slightly incorrect.
Spotted by Jens Oehlschlaegel.
Fixed.
- plot.fv
When add=TRUE, the x limits were sometimes truncated.
Spotted by Mike Zamboni.
Fixed.
- plot.im
Labels for the tick marks on the colour ribbon
were sometimes ridiculous, e.g. "2.00000001".
Fixed.
spatstat 1.28-0 (2012-06-11)
OVERVIEW
- We thank Farzaneh Safavimanesh, Andrew Hardegen and Tom Lawrence
for contributions.
- Improvements to 3D summary functions.
- A multidimensional point pattern (ppx) can now have 'local' coordinates
as well as spatial and temporal coordinates and marks.
- Changed format for point patterns on a linear network (lpp).
Changes are backward compatible. Many computations run faster.
- More support for fitted cluster models (kppm).
- split method for multidimensional point patterns (ppx)
and point patterns on a linear network (lpp).
- Fixed bug causing errors in plot.im
- Miscellaneous improvements and bug fixes
NEW FUNCTIONS
- exactMPLEstrauss
Fits the stationary Strauss point process model
using an exact maximum pseudolikelihood technique.
This is mainly intended for technical investigation of algorithms.
- split.ppx
Method for 'split' for multidimensional point patterns (class 'ppx').
This also works for point patterns on a linear network (class 'lpp').
- model.images
This function is now generic, with methods for classes ppm, kppm, lppm
- model.frame, model.matrix
These generic functions now have methods for classes kppm, lppm
- as.owin.kppm, as.owin.lppm
New methods for 'as.owin' for objects of class kppm, lppm
- as.linnet.lppm
Extracts the linear network in which a point process model was fitted.
SIGNIFICANT USER-VISIBLE CHANGES
- class 'ppx'
An object of class 'ppx' may now include 'local' coordinates
as well as 'spatial' and 'temporal' coordinates, and marks.
- ppx
Arguments have changed.
- class 'lpp'
The internal format of lpp objects has been extended
(but is backward-compatible). Many computations run faster.
To convert an object to the new format: X <- lpp(as.ppp(X), as.linnet(X)).
- F3est
Calculation of theoretical Poisson curve ('theo') has changed,
and is now controlled by the argument 'sphere'.
- rmh, rmhstart
The initial state ('start') can now be missing or null.
- im, as.im
The pixel coordinates in an image object are now generated
more accurately. This avoids a numerical error in plot.im.
- eval.fv, eval.fasp
Evaluation is now applied only to columns that contain
values of the function itself (rather than values of the
derivative, hazard rate, etc). This is controlled by the
new argument 'dotonly'.
- spatstat.options
New option 'nvoxel'
- quad.ppm
Now accepts kppm objects.
- str
This generic function (for inspecting the internal structure of an object)
now produces sensible output for objects of class 'hyperframe', 'ppx', 'lpp'
- ppx, coords.ppx, coords<-.ppx
The arguments to these functions have changed.
- lgcp.estK, Kmodel
Computation can be greatly accelerated
by setting spatstat.options(fastK.lgcp=TRUE).
- G3est
Computation accelerated.
- envelope
Computation slightly accelerated.
- spatstat.options
New option 'fastK.lgcp'
BUG FIXES
- nndist.psp
Caused an error if length(k) > 1.
Fixed.
- plot.im
Sometimes reported an error
"useRaster=TRUE can only be used with a regular grid."
This was due to numerical rounding effects on the coordinates
of a pixel image.
Fixed.
- plot.fv
If a formula was used to specify the plot,
the names of variables in the formula were sometimes
incorrectly matched to *functions*.
Spotted by Farzaneh Safavimanesh.
Fixed.
- F3est
Took a very long time if the containing box was very flat,
due to the default value of 'vside'.
Fixed.
- rmh, rmhmodel
An erroneous warning about 'outdated format of rmhmodel object'
sometimes occurred.
Fixed.
- marks<-.ppx
Names of result were incorrect. Fixed.
- hyperframe class
Various minor bug fixes.
spatstat 1.27-0 (2012-05-16)
OVERVIEW
- Variance estimates are now available for all Gibbs point process models.
- Cressie-Loosmore-Ford test implemented
- plot.fv now avoids collisions between the legend and the graphics.
- Extension to predict.ppm
- Improvements to envelopes and multitype summary functions.
- Line transects of a pixel image.
- Changes to defaults in Metropolis-Hastings simulations.
- More geometrical operations
- Bug fixes.
- We thank Aruna Jammalamadaka for contributions.
NEW FUNCTIONS
- clf.test
Perform the Cressie (1991)/ Loosmore and Ford (2006) test of CSR
(or another model)
- mad.test
Perform the Maximum Absolute Deviation test of CSR (or another model).
- convolve.im
Compute convolution of pixel images.
- Kmulti.inhom
Counterpart of 'Kmulti' for spatially-varying intensity.
- rmhexpand
Specify a simulation window, or a rule for expanding the
simulation window, in Metropolis-Hastings simulation (rmh)
- transect.im
Extract pixel values along a line transect.
- affine.im
Apply an affine transformation to a pixel image.
- scalardilate
Perform scalar dilation of a geometrical object
relative to a specified origin.
- reflect
Reflect a geometrical object through the origin.
- "[.lpp", "[.ppx"
Subset operators for the classes "lpp" (point pattern on
linear network) and "ppx" (multidimensional space-time
point pattern).
- is.rectangle, is.polygonal, is.mask
Determine whether a window w is a rectangle, a domain with polygonal
boundaries, or a binary pixel mask.
- has.offset
Determines whether a fitted model object (of any kind)
has an offset.
SIGNIFICANT USER-VISIBLE CHANGES
- predict.ppm
This function can now calculate the conditional intensity of a model
relative to any point pattern X (not just the original data pattern).
- vcov.ppm
This function now handles all Gibbs point process models.
- plot.fv
Collisions between the legend box and the graphics are now detected
and avoided.
- rmh.ppm, rmh.default, simulate.ppm, qqplot.ppm, envelope.ppm
These functions now have slightly different default behaviour
because of changes to the handling of arguments to 'rmhcontrol'.
- rmhcontrol
The default value of the parameters 'periodic' and 'expand'
has changed.
- rmhcontrol
The parameter 'expand' can now be in any format
acceptable to rmhexpand().
- rmh.ppm, rmh.default, simulate.ppm
Any 'rmhcontrol' parameter can now be given directly
as an argument to rmh.ppm, rmh.default or simulate.ppm.
- Kmulti, Gmulti, Jmulti
The arguments I, J can now be any kind of subset index
or can be functions that yield a subset index.
- envelope.envelope
In envelope(E, fun=NULL) if E does not contain simulated
summary functions, but does contain simulated point patterns,
then 'fun' now defaults to Kest, instead of flagging an error.
- print.ppp, summary.ppp
If the point pattern x was generated by Metropolis-Hastings
simulation using 'rmh', then print(x) and summary(x) show
information about the simulation parameters.
- print.ppm
Standard errors for the parameter estimates,
and confidence intervals for the parameters,
can now be printed for all Gibbs models
(but are printed only for Poisson models by default).
- eval.im
Images with incompatible dimensions are now resampled
to make them compatible (if harmonize=TRUE).
- spatstat.options
New option 'print.ppm.SE' controls whether standard errors
and confidence intervals are printed for all Gibbs models,
for Poisson models only, or are never printed.
- inside.owin
Now accepts the form list(x,y) for the first argument.
- image.listof
New argument 'equal.ribbon' allows several images to be plotted
with the same colour map.
- is.subset.owin
Improved accuracy in marginal cases.
- expand.owin
Functionality extended to handle all types of expansion rule.
- default.rmhcontrol, default.expand
These functions now work with models of class 'rmhmodel'
as well as 'ppm'
- print.rmhcontrol
Output improved.
BUG FIXES
- linearK, linearKinhom
If any data points were located exactly at a vertex of the
linear network, the weights for Ang's correction were incorrect,
due to numerical error. This sometimes produced infinite
or NA values of the linear K function.
Fixed.
- predict.ppm
In some cases, predict.ppm(type="cif") generated a spurious warning
that "number of rows of result is not a multiple of vector length."
Fixed.
- crossing.psp
Results were sometimes incorrect due to numerical rounding error
associated with GCC bug #323.
Fixed.
- MultiHard, MultiStrauss, MultiStraussHard
If the mark values contained non-alphanumeric characters,
the names of the interaction coefficients in coef(ppm(...))
were sometimes garbled.
Fixed.
- profilepl
For edge corrections other than the border correction,
an error message about 'rbord' would sometimes occur.
Fixed.
- is.marked, is.multitype
These functions gave the wrong answer for 'lpp' objects.
Fixed.
- marks<-.lpp, marks<-.ppx
Format of result was garbled if new columns of marks were added.
Fixed.
- reach.rmhmodel
Gave the wrong answer for Geyer and BadGey models.
Fixed.
- envelope.envelope
Ignored the argument 'savefuns'.
Fixed.
- BadGey
Sometimes wrongly asserted that the parameter 'sat' was invalid.
Occurred only in ppm(project=TRUE).
Fixed.
spatstat 1.26-1 (2012-04-19)
OVERVIEW
- Variance-covariance matrix for Gibbs point process models.
- Bootstrap confidence bands for pair correlation function and K function.
- Bug fix in scan test.
- Area-interaction model accelerated.
- we thank Jean-Francois Coeurjolly and Ege Rubak for contributions.
NEW FUNCTIONS
- lohboot
Computes bootstrap confidence bands for pair correlation function
and K function using Loh's (2008) mark bootstrap.
SIGNIFICANT USER-VISIBLE CHANGES
- vcov.ppm
Now works for all Gibbs point process models, thanks to new code (and theory)
from Jean-Francois Coeurjolly and Ege Rubak
- AreaInter
Computations related to the area-interaction point process
(ppm, predict.ppm, residuals.ppm, diagnose.ppm, qqplot.ppm)
have been accelerated.
BUG FIXES
- scan.test
Results were sometimes incorrect due to numerical instability
(a 'Gibbs phenomenon').
Fixed.
spatstat 1.26-0 (2012-04-08)
OVERVIEW
- We thank Jens Oehlschlaegel for contributions.
- Further substantial acceleration of spatstat functions.
- Workaround for bug in RandomFields package.
- Numerous modifications to internal code.
NEW FUNCTIONS
- RandomFieldsSafe
There is a bug in the package 'RandomFields' (version <= 2.0.54)
which causes a crash to occur, in the development version of R
but not in R 2.15.0. To avoid crashing spatstat, we have written
the temporary, undocumented function RandomFieldsSafe()
which returns TRUE if it is safe to use the RandomFields package.
Examples in the spatstat help files for kppm, lgcp.estK, lgcp.estpcf
and rLGCP are only executed if RandomFieldsSafe() returns TRUE.
SIGNIFICANT USER-VISIBLE CHANGES
- Many functions
Many spatstat functions now run faster, and will handle larger datasets,
thanks to improvements in the internal code,
following suggestions from Jens Oehlschlaegel.
- Many functions
The response to an 'Interrupt' signal is slightly slower.
spatstat 1.25-5 (2012-03-14)
OVERVIEW
- We thank Ya-Mei Chang, Jens Oehlschlaegel and Yong Song for contributions.
- Extended functionality of 'rhohat' to local likelihood smoothing
and bivariate smoothing.
- Nearest neighbour distance computations accelerated.
- spatstat now 'Suggests:' the package 'locfit'
NEW FUNCTIONS
- rho2hat
Bivariate extension of 'rhohat' for estimating spatial residual risk,
or intensity as a function of two covariates.
SIGNIFICANT USER-VISIBLE CHANGES
- rhohat
Estimation can now be performed using local likelihood fitting
with the 'locfit' package, or using kernel smoothing.
- nncross
Substantially accelerated.
New arguments added to control the return value and the sorting of data.
BUG FIXES
- plot.msr
Crashed if the argument 'box' was given.
Fixed.
spatstat 1.25-4 (2012-02-29)
OVERVIEW
- We thank Jonathan Lee and Sergiy Protsiv for contributions.
- Improvements and bug fixes to K function for very large datasets
NEW FUNCTIONS
- rStraussHard
Perfect simulation for Strauss-hardcore process (with gamma <= 1)
SIGNIFICANT USER-VISIBLE CHANGES
- plot.im
The colour ribbon can now be placed left, right, top or bottom
using new argument 'ribside'
- profilepl
Does not generate warnings when some of the candidate models
have zero likelihood - for example when fitting model with a hard core.
- Kest
Now includes fast algorithm for 'correction="none"'
which will handle patterns containing millions of points.
BUG FIXES
- Kest, Lest
Gave incorrect values in very large datasets, due to numerical overflow.
‘Very large’ typically means about 1 million points in a random pattern,
or 100,000 points in a tightly clustered pattern.
[Overflow cannot occur unless there are at least 46,341 points.]
[Spotted by Sergiy Protsiv.]
Fixed.
- Kest, Lest
Ignored 'ratio=TRUE' if the argument 'domain' was given.
[Spotted by Jonathan Lee.]
Fixed.
- rjitter
Output was sometimes incorrect.
[Spotted by Sergiy Protsiv.]
Fixed.
spatstat 1.25-3 (2012-02-05)
OVERVIEW
- We thank Daniel Esser for contributions.
- Improved support for fitted point process models.
- Bug fixes.
NEW FUNCTIONS
- simulate.slrm
Method for 'simulate' for spatial logistic regression models.
- labels.ppm, labels.kppm, labels.slrm
Methods for 'labels' for fitted point process models.
- commonGrid
Determine a common spatial domain and pixel resolution
for several pixel images and/or binary masks
SIGNIFICANT USER-VISIBLE CHANGES
- effectfun
Now has argument 'se.fit' allowing calculation of standard errors
and confidence intervals.
- [.msr
Now handles character-valued indices.
- print.summary.ppm
Output gives a more precise description of the fitting method.
- ppm, kppm, slrm
Confidence intervals for the fitted trend parameters
can now be obtained using 'confint'
- predict.slrm
New argument 'window'
- union.owin
Now handles a single argument: union.owin(A) returns A.
BUG FIXES
- selfcrossing.psp
y coordinate values were incorrect.
[Spotted by Daniel Esser.]
Fixed.
- as.im.owin
Did not handle a binary mask with a 1 x 1 pixel array.
Fixed.
- predict.slrm
Results of predict(object, newdata) were incorrect
if the spatial domain of 'newdata' was larger than the original domain.
Fixed.
- ppm
If the model was the uniform Poisson process,
the argument 'rbord' was ignored.
Fixed.
- image subset assignment "[<-.im"
Generated an error if the indexing argument 'i'
was a point pattern containing zero points.
Fixed.
- hyperframe subset assignment "[<-.hyperframe"
Did not correctly handle the case where a single column
of the hyperframe was to be changed.
Fixed.
- help(bw.relrisk), help(rmh.ppm), help(plot.plotppm)
These help files had the side-effect of changing some options
in spatstat.options.
Fixed.
spatstat 1.25-2 (2012-01-19)
OVERVIEW
- We thank Abdollah Jalilian and Thierry Onkelinx for contributions.
- Very Important Bug fixes.
- Improved mechanism for handling 'invalid' point processes
NEW FUNCTIONS
- as.matrix.owin
Converts a window to a logical matrix.
SIGNIFICANT USER-VISIBLE CHANGES
- project.ppm
Improved algorithm.
Now handles terms in the trend formula as well as the interaction.
The projected point process is now obtained by re-fitting the model,
and is guaranteed to be the maximum pseudolikelihood fit.
- plot.im
Now handles many arguments recognised by plot.default
such as 'cex.main'. Also handles argument 'box'.
New argument 'ribargs' contains parameters controlling the
ribbon plot only.
- spatstat.options
New option 'project.fast' allows a faster shortcut for project.ppm
- spatstat.options
New options 'rmh.p', 'rmh.q', 'rmh.nrep' determine the default values
of the parameters p, q and nrep of the Metropolis-Hastings algorithm.
See rmhcontrol
- ppm
Slightly accelerated.
BUG FIXES
- nncross, distfun, AreaInter
Results of nncross were possibly incorrect
when X and Y did not have the same window.
This bug affected values of 'distfun' and may also
have affected ppm objects with interaction 'AreaInter'.
[Spotted by Thierry Onkelinx]
Bug introduced in spatstat 1.9-4 (June 2006).
Fixed.
- rCauchy
Simulations were incorrect in the sense that
the value of 'omega' was inadvertently doubled
(i.e. omega was incorrectly replaced by 2 * omega).
Bug introduced in spatstat 1.25-0.
Fixed.
- plot.im
White lines were present in the image display, on some graphics devices,
due to changes in R 2.14.
Fixed.
- update.ppm
The result of 'update(object, formula)' sometimes contained errors
in the internal format.
Bug introduced in spatstat 1.25-0.
Fixed.
- example(AreaInter), example(bw.smoothppp),
example(Kest.fft), example(plot.owin), example(predict.ppm),
example(simulate.ppm)
Executing these examples had the side-effect of
changing some of the parameters in spatstat.options.
Fixed.
spatstat 1.25-1 (2011-12-21)
OVERVIEW
- We thank Neba Funwi-Gabga and Jorge Mateu for contributions.
- New dataset of gorilla nest sites
- New functions for perfect simulation
- Bug fix for rare crashes in rStrauss
- Code for ensuring a fitted point process model is a valid point process
NEW DATASET
- gorillas
Gorilla nest sites in a National Park in Cameroon.
Generously contributed by Neba Funwi-Gabga
NEW FUNCTIONS
- rDiggleGratton, rDGS, rHardcore
Perfect simulation for the Diggle-Gratton process,
Diggle-Gates-Stibbard process, and Hardcore process.
- bw.scott
Scott's rule of thumb for bandwidth selection in
multidimensional smoothing
- valid.ppm
Checks whether a fitted point process model is a valid point process
- project.ppm
Forces a fitted point process model to be a valid point process
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
New argument 'project' determines whether the fitted model
is forced to be a valid point process
- linnet
Substantially accelerated.
- rStrauss
Slightly accelerated.
- summary.lpp
Now prints the units of length.
BUG FIXES
- rStrauss
Crashed rarely (once every 10 000 realisations)
with a memory segmentation fault.
Fixed.
spatstat 1.25-0 (2011-12-06)
OVERVIEW
- Leverage and influence for point process models
- New cluster models (support for model-fitting and simulation).
- Fit irregular parameters in trend of point process model
- Third order summary statistic.
- Improvements to speed and robustness of code.
- spatstat now depends on R 2.14
- We thank Abdollah Jalilian and Rasmus Waagepetersen for contributions.
NEW FUNCTIONS
- leverage.ppm, influence.ppm, dfbetas.ppm
Leverage and influence for point process models
- ippm
Experimental extension to 'ppm' which fits irregular parameters in trend
by Fisher scoring algorithm.
- Tstat
Third order summary statistic for point patterns
based on counting triangles.
- rCauchy, rVarGamma
simulation of a Neyman-Scott process with Cauchy clusters
or Variance Gamma (Bessel) clusters.
Contributed by Abdollah Jalilian.
- rPoissonCluster
simulation of a general Poisson cluster process
- model.covariates
Identify the covariates involved in a model (lm, glm, ppm etc)
- as.im.distfun
Converts a 'distfun' to a pixel image.
- cauchy.estK, cauchy.estpcf, vargamma.estK, vargamma.estpcf
Low-level model-fitting functions for the Neyman-Scott process
with Cauchy or Variance-Gamma cluster kernel.
Contributed by Abdollah Jalilian.
SIGNIFICANT USER-VISIBLE CHANGES
- kppm
Now accepts clusters="Cauchy" or clusters="VarGamma"
for the Neyman-Scott process with Cauchy or Variance-Gamma cluster kernel.
Code contributed by Abdollah Jalilian.
- rNeymanScott
Argument 'rcluster' may now take a different format.
- psst
Argument 'funcorrection' changed to 'funargs' allowing greater flexibility.
- plot.fv, plot.envelope
New argument 'limitsonly' allows calculation of
a common x,y scale for several plots.
- overall speed
spatstat is now byte-compiled and runs slightly faster.
- user interrupt
Long calculations in spatstat now respond to the Interrupt/Stop signal.
- update.ppm
Now runs faster and uses much less memory,
when the update only affects the model formula (trend formula).
- rNeymanScott, rThomas, rMatClust
Accelerated thanks to Rasmus Waagepetersen.
- multitype data and models
Second order multitype statistics (such as Kcross, pcfcross)
and multitype interaction models (such as MultiStrauss)
now run faster, by a further 5%.
BUG FIXES
- distfun
Some manipulations involving 'distfun' objects failed if the
original data X in distfun(X) did not have a rectangular window.
Fixed.
spatstat 1.24-2 (2011-11-11)
OVERVIEW
- Geyer's triplet interaction
- more functionality for replicated point patterns
- changed default for simulation window in point process simulation
- changed default for edge correction in Kcom, Gcom
- data in spatstat is now lazy-loaded
- bug fixes
NEW FUNCTIONS
- Triplets
Geyer's triplet interaction, for point process models
- coef.summary.ppm
New method coef.summary.ppm
You can now type 'coef(summary(fit))' to extract a table
of the fitted coefficients of the point process model 'fit'
SIGNIFICANT USER-VISIBLE CHANGES
- data in spatstat are now lazy-loaded
so you don't have to type data(amacrine), etc.
- rmh.default, rmh.ppm, simulate.ppm
These now handle the 'triplets' interaction
- fryplot
Now has arguments 'to' and 'from', allowing
selection of a subset of points.
- fryplot, frypoints
These functions now handle marked point patterns properly.
- Kcross, Kdot, Kmulti
New argument 'ratio' determines whether the numerator and denominator
of the estimate of the multitype K-function will be stored.
This enables analysis of replicated point patterns,
using 'pool.rat()' to pool the K function estimates.
- rmh.ppm, simulate.ppm, default.expand
For point process models which have a trend depending only on x and y,
the simulation window is now taken to be the same as the original
window containing the data (by default).
That is, ‘expansion’ does not take place, by default.
(In previous versions of spatstat the simulation window was larger
than the original data window.)
- rmh.ppm, simulate.ppm
The argument sequence for these functions has changed.
New argument 'expand' allows more explicit control over simulation domain.
- Kcom, Gcom
New argument 'conditional' gives more explicit control
over choice of edge correction in compensator.
Simplified defaults for edge correction.
- Kinhom
Improved plot labels.
- profilepl
Printed output improved.
BUG FIXES
- Lest
The variance approximations (Lotwick-Silverman and Ripley)
obtained with var.approx=TRUE, were incorrect for Lest
(although they were correct for Kest) due to a coding error.
Fixed.
- simulate.ppm
Ignored the argument 'control' in some cases.
Fixed.
- pcf and its relatives (pcfinhom, pcfcross.inhom, pcfdot.inhom)
Sometimes gave a warning about 'extra arguments ignored'.
Fixed.
spatstat 1.24-1 (2011-10-23)
OVERVIEW
- Spatial Scan Test
- Functionality for replicated point patterns
- Bug fixes
NEW FUNCTIONS
- scan.test
Spatial scan test of clustering
- rat
New class of 'ratio objects'
- pool.rat
New method for 'pool'.
Combines K function estimates for replicated point patterns (etc)
by computing ratio-of-sums
- unnormdensity
Weighted kernel density with weights that do not sum to 1
and may be negative.
- compatible
New generic function with methods for 'fv', 'im', 'fasp' and 'units'
SIGNIFICANT USER-VISIBLE CHANGES
- Kest
New argument 'ratio' determines whether the numerator and denominator
of the estimate of the K-function will be stored.
This enables analysis of replicated point patterns,
using 'pool.rat()' to pool the K function estimates.
- Lest
Now handles theoretical variance estimates (using delta method)
if var.approx=TRUE
- as.mask
Argument 'eps' can now be a 2-vector, specifying x and y resolutions.
- default.expand
Behaviour changed slightly.
- plot.listof, plot.splitppp, contour.listof, image.listof
The arguments 'panel.begin' and 'panel.end' can now be objects
such as windows.
BUG FIXES
- rgbim, hsvim
Did not work on images with non-rectangular domains.
Fixed.
- scaletointerval
Did not handle NA's.
Fixed.
spatstat 1.24-0
OVERVIEW
- This version was not released publicly.
spatstat 1.23-6 (2011-10-11)
OVERVIEW
- Spatial covariance functions of windows and pixel images.
- Area-interaction models can now be fitted in non-rectangular windows
- Bug fix for envelope of inhomogeneous Poisson process
- Bug fix for raster conversion
- New vignette on 'Getting Started with Spatstat'
- Code accelerated.
NEW FUNCTIONS
- imcov
Spatial covariance function of pixel image
or spatial cross-covariance function of two pixel images
- harmonise.im
Make several pixel images compatible
by converting them to the same pixel grid
- contour.listof, image.listof
Methods for contour() and image() for lists of objects
- dummify
Convert data to numeric values by constructing dummy variables.
SIGNIFICANT USER-VISIBLE CHANGES
- setcov
Can now compute the ‘cross-covariance’ between two regions
- AreaInter
Point process models with the AreaInter() interaction
can now be fitted to point pattern data X in any window.
- areaGain, areaLoss
These now handle arbitrary windows W.
They are now more accurate when r is very small.
- Kcom
Computation vastly accelerated, for non-rectangular windows.
- vignettes
New vignette 'Getting Started with the Spatstat Package'
- nncorr, nnmean, nnvario
These functions now handle data frames of marks.
BUG FIXES
- envelope.ppm
If the model was an inhomogeneous Poisson process,
the resulting envelope object was incorrect
(the simulations were correct, but the envelopes were calculated
assuming the model was CSR). Bug was introduced in spatstat 1.23-5.
Fixed.
- envelope.ppm
If the model was an inhomogeneous Poisson process
with intensity a function of x and y only,
overflow errors sometimes occurred ('insufficient storage'
or 'attempting to generate a large number of random points').
Fixed.
- as.im.im
The result of as.im(X, W) was incorrect if 'W' did not cover 'X'.
Fixed.
- as.mask
The result of as.mask(w, xy) was incorrect if 'xy' did not cover 'w'.
Fixed.
- plot.fv
Legend was incorrectly labelled if 'shade' variables were not included
in the plot formula.
Fixed.
- areaGain, areaLoss
Crashed if the radius r was close to zero.
Fixed.
spatstat 1.23-5 (2011-09-23)
OVERVIEW
- Bug fix to bandwidth selection.
- Functions to pool data from several objects of the same class.
- Improvements and bug fixes.
- We thank Michael Sumner for contributions.
NEW FUNCTIONS
- pool
Pool data from several objects of the same class
- pool.envelope
Pool simulated data from several envelope objects and create a new envelope
- pool.fasp
Pool simulated data from several function arrays and create a new array
- envelope.envelope
Recalculate an envelope from simulated data using different parameters
SIGNIFICANT USER-VISIBLE CHANGES
- bw.diggle, bw.relrisk, bw.smoothppp, bw.optim
Plot method modified.
- model.depends
Now also recognises 'offset' terms.
BUG FIXES
- bw.diggle
Bandwidth was too large by a factor of 2.
Fixed.
- plot.psp
Crashed if any marks were NA.
Fixed.
- pointsOnLines
Crashed if any segments had zero length.
Ignored argument 'np' in some cases.
Fixed.
- stieltjes
Crashed if M had only a single column of function values.
Fixed.
spatstat 1.23-4 (2011-09-09)
OVERVIEW
- Bandwidth selection for density.ppp and smooth.ppp
- Layered plots.
- Model-handling facilities.
- Improvements and bug fixes.
NEW FUNCTIONS
- bw.diggle
Bandwidth selection for density.ppp by mean square error cross-validation.
- bw.smoothppp
Bandwidth selection for smooth.ppp by least-squares cross-validation.
- layered, plot.layered
A simple mechanism for controlling plots that consist of
several successive layers of data.
- model.depends
Given a fitted model (of any kind), identify which of the covariates
is involved in each term of the model.
- model.is.additive
Determine whether a fitted model (of any kind) is additive,
in the sense that each term in the model involves at most one covariate.
SIGNIFICANT USER-VISIBLE CHANGES
- smooth.ppp
Bandwidth 'sigma' is now selected by least-squares cross-validation
- bw.relrisk
Computation in large datasets accelerated.
New arguments 'hmin', 'hmax' control the range of trial values of bandwidth.
- Hest, Gfox, Jfox
Improved algebraic labels for plot
- spatstat.options
New parameter 'n.bandwidth'
- density.ppp, smooth.ppp
Slightly accelerated.
- point-in-polygon test
Accelerated.
BUG FIXES
- with.fv
Mathematical labels were incorrect in some cases.
Fixed.
- bw.relrisk
Implementation of method="weightedleastsquares" was incorrect
and was equivalent to method="leastsquares".
Fixed.
- smooth.ppp
NaN values occurred if the bandwidth was very small.
Fixed.
spatstat 1.23-3 (2011-08-12)
OVERVIEW
BUG FIXES
- crossing.psp
Crashed occasionally with a message about NA or NaN values.
Fixed.
- affine.ppp
Crashed if the point pattern was empty.
Fixed.
spatstat 1.23-2 (2011-08-11)
OVERVIEW
- Bug fixes.
- Several functions have been accelerated.
- We thank Marcelino de la Cruz and Ben Madin for contributions.
NEW FUNCTIONS
- sumouter, quadform
Evaluate certain quadratic forms.
- flipxy
Exchange x and y coordinates.
SIGNIFICANT USER-VISIBLE CHANGES
- vcov.ppm
Accelerated.
- owin, as.owin
Checking the validity of polygons has been accelerated.
- crossing.psp, selfcrossing.psp
Accelerated.
BUG FIXES
- split.ppp
If drop=TRUE then some of the point patterns had the wrong windows.
Spotted by Marcelino de la Cruz.
Fixed.
- split.ppp
Crashed if the tessellation did not cover the point pattern.
Fixed.
- predict.ppm
Crashed when type="se" if NA's were present.
Spotted by Ben Madin.
Fixed.
- plot.ppp
Incorrectly handled the case where both 'col' and 'cols' were present.
Fixed.
- polygon geometry
The point-in-polygon test gave the wrong answer in some boundary cases.
Fixed.
spatstat 1.23-1 (2011-08-01)
OVERVIEW
- Important bug fix to 'localpcf'.
- Inverse-distance weighted smoothing.
- Inhomogeneous versions of neighbourhood density functions.
- Internal repairs and bug fixes.
- We thank Mike Kuhn and Ben Madin for contributions.
NEW FUNCTIONS
- idw
Inverse-distance weighted smoothing.
- localKinhom, localLinhom, localpcfinhom
Inhomogeneous versions of localK, localL, localpcf
BUG FIXES
- localpcf
The columns of the result were in the wrong order.
[i.e. pair correlation functions were associated with the wrong points.]
Fixed.
- delaunay
If the union of several Delaunay triangles formed a triangle,
this was erroneously included in the result of delaunay().
Fixed.
- predict.ppm, plot.ppm
Sometimes crashed with a warning about 'subscript out of bounds'.
Fixed.
- point-in-polygon test
Vertices of a polygon were sometimes incorrectly classified
as lying outside the polygon.
Fixed.
- Internal code
Numerous tweaks and repairs to satisfy the package checker
for the future R version 2.14.
spatstat 1.23-0 (2011-07-24)
OVERVIEW
- point patterns on a linear network:
new tools including geometrically-corrected linear K function,
pair correlation function, point process models, envelopes
- changes to renormalisation of estimates in Kinhom and pcfinhom
- new dataset: Chicago street crime
- spatstat now 'Suggests:' the package RandomFields
- spatstat now has a Namespace
- we thank Mike Kuhn, Monia Mahling, Brian Ripley for contributions.
NEW DATASET
- chicago
Street crimes in the University district of Chicago.
A point pattern on a linear network.
NEW FUNCTIONS
- envelope.lpp
Simulation envelopes for point patterns on a linear network
- lineardisc
Compute the 'disc' of radius r in a linear network
- linearpcf
Pair correlation for point pattern on a linear network
- linearKinhom, linearpcfinhom
Inhomogeneous versions of the K function and pair correlation function
for point patterns on a linear network
- lppm
Fit point process models on a linear network.
- anova.lppm
Analysis of deviance for point process models on a linear network.
- predict.lppm
Prediction for point process models on a linear network.
- envelope.lppm
Simulation envelopes for point process models on a linear network.
- linim
Pixel image on a linear network
- plot.linim
Plot a pixel image on a linear network
SIGNIFICANT USER-VISIBLE CHANGES
- linearK
New argument 'correction'.
Geometrically-corrected estimation is performed by default
(based on forthcoming paper by Ang, Baddeley and Nair)
- Kinhom
New argument 'normpower' allows different types of renormalisation.
- pcfinhom
Now performs renormalisation of estimate.
Default behaviour changed - estimates are now renormalised by default.
BUG FIXES
- density.ppp
Crashed if argument 'varcov' was given.
Fixed.
spatstat 1.22-4
OVERVIEW
- new diagnostics based on score residuals
- new dataset
- improvements to plotting summary functions
- We thank Ege Rubak, Jesper Moller, George Leser, Robert Lamb
and Ulf Mehlig for contributions.
NEW FUNCTIONS
- Gcom, Gres, Kcom, Kres
New diagnostics for fitted Gibbs or Poisson point process models
based on score residuals.
Gcom is the compensator of the G function
Gres is the residual of the G function
Kcom is the compensator of the K function
Kres is the residual of the K function
- psst, psstA, psstG
New diagnostics for fitted Gibbs or Poisson point process models
based on pseudoscore residuals.
psst is the pseudoscore diagnostic for a general alternative
psstA is the pseudoscore diagnostic for an Area-interaction alternative
psstG is the pseudoscore diagnostic for a Geyer saturation alternative
- compareFit
Computes and compares several point process models
fitted to the same dataset, using a chosen diagnostic.
- as.interact
Extracts the interpoint interaction structure (without parameters)
from a fitted point process model or similar object.
NEW DATASET
- flu
Spatial point patterns giving the locations of
influenza virus proteins on cell membranes.
Kindly released by Dr George Leser and Dr Robert Lamb.
SIGNIFICANT USER-VISIBLE CHANGES
- pixel images and grids
The default size of a pixel grid, given by spatstat.options("npixel"),
has been changed from 100 to 128. A power of 2 gives faster
and more accurate results in many cases.
- residuals.ppm
New arguments 'coefs' and 'quad' for advanced use
(make it possible to compute residuals from a
modified version of the fitted model.)
- relrisk
New argument 'casecontrol' determines whether a bivariate
point pattern should be treated as case-control data.
- plot.fv
Further improvements in mathematical labels.
- plot.fv
The formula can now include the symbols .x and .y
as abbreviation for the function argument and the
recommended function value, respectively.
- plot.fv
New argument 'add'
BUG FIXES
- multitype summary functions
(Kcross, Kdot, Gcross, Gdot, .....)
Plotting these functions generated an error if the
name of one of the types of points contained spaces,
e.g. "Escherichia coli".
Fixed.
spatstat 1.22-3 (2011-06-17)
OVERVIEW
- Important bug fix to simulation code
- Miscellaneous improvements
- spatstat now depends on R 2.13.0 or later
- We thank Ege Rubak, Kaspar Stucki, Vadim Shcherbakov,
Jesper Moller and Ben Taylor for contributions.
NEW FUNCTIONS
- is.stationary, is.poisson
New generic functions for testing whether a point process model
is stationary and/or Poisson.
Methods for ppm, kppm, slrm etc
- raster.xy
raster coordinates of a pixel mask
- zapsmall.im
'zapsmall' for pixel images
SIGNIFICANT USER-VISIBLE CHANGES
- density.ppp
New argument 'diggle' allows choice of edge correction
- rotate.owin, affine.owin
These functions now handle binary pixel masks.
New argument 'rescue' determines whether rectangles will be preserved
BUG FIXES
- rmh, simulate.ppm
Serious bug - simulation was completely incorrect in the case of
a multitype point process with an interaction that does not depend
on the marks, such as ppm(betacells, ~marks, Strauss(60))
The calling parameters were garbled.
Fixed.
- effectfun
Crashed if the covariate was a function(x,y).
Fixed.
- lurking
Gave erroneous error messages about 'damaged' models.
Fixed.
- envelope.ppm
Did not recognise when the fitted model was equivalent to CSR.
Fixed.
- plot.ppx
Crashed in some cases. Fixed.
spatstat 1.22-2 (2011-06-15)
OVERVIEW
- Fitting and simulation of log-Gaussian Cox processes
with any covariance function
- More support for 'kppm' and 'rhohat' objects
- K-function for point patterns on a linear network
- Metropolis-Hastings algorithm now saves its transition history
- Easier control of dummy points in ppm
- Convert an 'fv' object to an R function
- spatstat now depends on the package 'RandomFields'
- We thank Abdollah Jalilian, Shen Guochun, Rasmus Waagepetersen,
Ege Rubak and Ang Qi Wei for contributions.
NEW FUNCTIONS
- linearK
Computes the Okabe-Yamada network K-function
for a point pattern on a linear network.
- pairdist.lpp
Shortest-path distances between each pair of points
on a linear network.
- vcov.kppm
Asymptotic variance-covariance matrix for regression parameters
in kppm object.
[Contributed by Abdollah Jalilian and Rasmus Waagepetersen]
- rLGCP
Simulation of log-Gaussian Cox processes
[Contributed by Abdollah Jalilian and Rasmus Waagepetersen]
- predict.rhohat
Method for 'predict' for objects of class 'rhohat'
Computes a pixel image of the predicted intensity.
- Kmodel, pcfmodel
Generic functions that compute the K-function or pair correlation function
of a point process *model*.
So far the only methods are for the class 'kppm'.
- as.function.fv
Converts a function value table (class 'fv') to a function in R
- coef.kppm
Method for 'coef' for objects of class 'kppm'
- unitname, unitname<-
These generic functions now have methods for fitted model objects
(classes ppm, slrm, kppm, minconfit) and quadrature schemes (quad).
- nobs.ppm
Method for 'nobs' for class 'ppm'.
Returns the number of points in the original data.
SIGNIFICANT USER-VISIBLE CHANGES
- kppm
Can now fit a log-Gaussian Cox process
- simulate.kppm
Can now simulate a fitted log-Gaussian Cox process
- lgcp.estK, lgcp.estpcf
These functions previously fitted a log-Gaussian Cox process
with exponential covariance. They can now fit a log-Gaussian Cox process
with any covariance function implemented by the RandomFields package.
- rmh
If track=TRUE, the history of transitions of the Metropolis-Hastings
algorithm is saved and returned.
- ppm
New argument 'nd' controls the number of dummy points.
- as.fv
Now handles objects of class kppm or minconfit.
- rhohat
If covariate = "x" or "y", the resulting object has the same
'unitname' as the original point pattern data.
- rhohat
Now has arguments 'eps, 'dimyx' to control pixel resolution.
- MultiStrauss, MultiHard, MultiStraussHard
Default value of 'types' has been changed to NULL.
- data(ants)
The auxiliary data 'ants.extra' now includes a function called 'side'
determining whether a given location is in the scrub or field region.
Can be used as a covariate in ppm, kppm, slrm.
- print.ppm
Now has argument 'what' to allow only selected information to be printed.
BUG FIXES
- profilepl
Crashed in some cases involving multitype interactions.
Fixed.
- plot.splitppp
Behaved incorrectly if 'main' was an expression.
Fixed.
- effectfun
Crashed in trivial cases.
Fixed.
- kppm, thomas.estpcf, matclust.estpcf, lgcp.estpcf
Gave a spurious warning message.
Fixed.
- step
When applied to ppm objects this gave a spurious warning.
Fixed.
spatstat 1.22-1 (2011-05-19)
OVERVIEW
- marked line segment patterns can now be plotted
- multitype point process models are now 'self-starting'
- new functions to manipulate colour images
NEW FUNCTIONS
- rgbim, hsvim
Specify three colour channels.
These functions convert three pixel images with numeric values
into a single image whose pixel values are strings representing colours.
- scaletointerval
Generic utility function to rescale data (including spatial data)
to a specified interval
SIGNIFICANT USER-VISIBLE CHANGES
- plot.im
Can now plot images whose pixel values are strings representing colours.
New argument 'valuesAreColours'
- plot.psp
Now handles marked line segment patterns
and plots the marks as colours.
- MultiHard, MultiStrauss, MultiStraussHard
The argument 'types' can now be omitted;
it will be inferred from the point pattern data.
- rhohat
Improved mathematical labels (when the result of rhohat is plotted)
- plot.fv
Minor improvements in graphics
BUG FIXES
- several minor bug fixes and improvements to satisfy R-devel
spatstat 1.22-0 (2011-04-28)
OVERVIEW
- support for point patterns on a linear network
- 'superimpose' is now generic
- improved mathematical labels when plotting functions
NEW CLASSES
- linnet
An object of class 'linnet' represents a linear network,
i.e. a connected network of line segments, such as a road network.
Methods for this class include plot, print, summary etc.
- lpp
An object of class 'lpp' represents a point pattern on a linear network,
such as a record of the locations of road accidents on a road network.
Methods for this class include plot, print, summary etc.
NEW FUNCTIONS
- runiflpp
Uniformly distributed random points on a linear network
- rpoislpp
Poisson point process on a linear network
- clickjoin
Interactive graphics to create a linear network
- superimpose
The function 'superimpose' is now generic, with methods
for ppp, psp and a default method.
- as.ppp.psp
New method for as.ppp extracts the endpoints and marks
from a line segment pattern
NEW DATASETS
- simplenet
Simple example of a linear network
SIGNIFICANT USER-VISIBLE CHANGES
- superimposePSP
This function is now deprecated in favour of 'superimpose'
- superimpose
Now handles data frames of marks.
- plot.fv
Argument 'legendmath' now defaults to TRUE.
New argument 'legendargs' gives more control over appearance of legend.
Increased default spacing between lines in legend.
- eval.fv, with.fv
Functions computed using eval.fv or with.fv
now have better labels when plotted.
- summary functions
(Kest, Kest.fft, Kcross, Kdot, Kmulti,
Kinhom, Kcross.inhom, Kdot.inhom, Kmulti.inhom,
Lest, Lcross, Ldot,
pcf, pcfcross, pcfdot, pcfinhom, pcfcross.inhom, pcfdot.inhom,
Fest, Gest, Gcross, Gdot, Gmulti,
Jest, Jcross, Jdot, Jmulti, Iest,
localL, localK,
markcorr, markvario, markconnect, Emark, Vmark,
allstats, alltypes)
Improved plot labels.
BUG FIXES
- superimpose
If the marks components of patterns consisted of character
vectors (rather than factors or non-factor numeric vectors)
an error was triggered.
Fixed.
- plot.fv
The y axis limits did not always cover the range of values
if the argument 'shade' was used.
Fixed.
- plot.rhohat
The y axis label was sometimes incorrect.
Fixed.
- plot.rhohat
If argument 'xlim' was used, a warning was generated from 'rug'.
Fixed.
spatstat 1.21-6 (2011-03-26)
OVERVIEW
- A line segment pattern can now have a data frame of marks.
- Various minor extensions and alterations in behaviour
NEW FUNCTIONS
- nsegments
Number of segments in a line segment pattern
SIGNIFICANT USER-VISIBLE CHANGES
- psp class
A line segment pattern (object of class 'psp') can now have a
data frame of marks.
- density.ppp
New argument 'adjust' makes it easy to adjust the smoothing bandwidth
- plot.envelope
If the upper envelope is NA but the lower envelope is finite,
the upper limit is now treated as +Infinity
- msr
Argument 'continuous' renamed 'density'
BUG FIXES
- [.psp
In X[W] if X is a line segment pattern and W is a polygonal window,
marks were sometimes discarded, leading to an error.
Fixed.
- [.psp
In X[W] if X is a line segment pattern and W is a rectangular window,
if the marks of X were factor values, they were converted to integers.
Fixed.
- superimposePSP
If the marks were a factor, they were mistakenly converted to integers.
Fixed.
- is.marked.ppp
Did not generate a fatal error when na.action="fatal" as described
in the help file.
Fixed.
spatstat 1.21-5 (2011-02-10)
OVERVIEW
- Increased numerical stability.
- New 'self-starting' feature of interpoint interactions.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
Interaction objects may now be 'self-starting'
i.e. initial parameter estimates can be computed
from the point pattern dataset.
So far, only the LennardJones() interaction
has a self-starting feature.
- LennardJones
Increased numerical stability.
New (optional) scaling argument 'sigma0'.
Interpoint distances are automatically rescaled
using 'self-starting' feature.
- vcov.ppm
New argument 'matrix.action' controls what happens when
the matrix is ill-conditioned.
Changed name of argument 'gamaction' to 'gam.action'
- rmhmodel.ppm
Default resolution of trend image has been increased.
- is.poisson.ppm
Accelerated.
- ppm, kppm, qqplot.ppm
Improved robustness to numerical error
spatstat 1.21-4 (2011-01-20)
OVERVIEW
BUG FIXES
- print.summary.ppm exited with an error message,
if the model had external covariates.
Fixed.
spatstat 1.21-3 (2011-01-17)
OVERVIEW
- Point process model covariates may now depend on additional parameters.
- New class of signed measures, for residual analysis.
- Miscellaneous improvements and bug fixes.
NEW FUNCTIONS
- clarkevans.test
Classical Clark-Evans test of randomness
- msr
New class 'msr' of signed measures and vector-valued measures
supporting residual analysis.
- quadrat.test.quadratcount
Method for 'quadrat.test' for objects of class 'quadratcount'
(allows a chi-squared test to be performed on quadrat counts
rather than recomputing from the original data)
- tile.areas
Computes areas of tiles in a tessellation (efficiently)
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
The spatial trend can now depend on additional parameters.
This is done by allowing spatial covariate functions
to have additional parameters: function(x, y, ...)
where ... is controlled by the new argument 'covfunargs' to ppm
- profilepl
Can now maximise over trend parameters as well as interaction parameters
- residuals.ppm
The value returned by residuals.ppm is now an object
of class 'msr'. It can be plotted directly.
- eval.im
When the argument 'envir' is used, eval.im() now recognises
functions as well as variables in 'envir'
- colourmap
The argument 'col' can now be any kind of colour data
- persp.im
The 'colmap' argument can now be a 'colourmap' object
- ppm
The print and summary methods for 'ppm' objects
now show standard errors for parameter estimates
if the model is Poisson.
- quadrat.test
The print method for 'quadrattest' objects
now displays information about the quadrats
- lurking
Improved format of x axis label
- distmap.ppp
Internal code is more robust.
BUG FIXES
- im
Did not correctly handle 1 x 1 arrays.
Fixed.
- as.mask, pixellate.ppp
Weird things happened if the argument 'eps' was set
to a value greater than the size of the window.
Fixed.
spatstat 1.21-2 (2010-11-29)
OVERVIEW
- New multitype hardcore interaction.
- Nonparametric estimation of covariate effects on point patterns.
- Output of 'Kmeasure' has been rescaled.
- Numerous improvements and bug fixes.
NEW FUNCTIONS
- MultiHard
multitype hard core interaction for use in ppm()
- coords<-
Assign new coordinates to the points in a point pattern
- rhohat
Kernel estimate for the effect of a spatial covariate
on point process intensity
SIGNIFICANT USER-VISIBLE CHANGES
- as.ppp.matrix, as.ppp.data.frame
These methods for 'as.ppp' now accept a matrix or data frame
with any number of columns (>= 2) and interpret the additional
columns as marks.
- Kmeasure
The interpretation of the output has changed:
the pixel values are now density estimates.
- rmh.ppm, rmhmodel.ppm
These functions now accept a point process model
fitted with the 'MultiHard' interaction
- rmh.default, rmhmodel.default
These functions now accept the option: cif='multihard'
defining a multitype hard core interaction.
- markcorr
Now handles a data frame of marks
- varblock
Improved estimate in the case of the K function
- colourmap, lut
New argument 'range' makes it easier to specify a colour map
or lookup table
- [<-.hyperframe
Now handles multiple columns
- plot.fv
Improved y axis labels
- spatstat.options
New option 'par.fv' controls default parameters for line plotting
- rmhmodel
More safety checks on parameter values.
- quadratresample
New argument 'verbose'
- smooth.fv
Default value of 'which' has been changed.
BUG FIXES
- Kest
If the argument 'domain' was used, the resulting estimate
was not correctly normalised.
Fixed.
- Kest
The Lotwick-Silverman variance approximation was incorrectly
calculated. (Spotted by Ian Dryden and Igor Chernayavsky).
Fixed.
- plot.owin, plot.ppp
Display of binary masks was garbled if the window was
empty or if it was equivalent to a rectangle.
Fixed.
- plot.bermantest
One of the vertical lines for the Z1 test was in the wrong place.
Fixed.
- marks<-.ppx
Crashed in some cases.
Fixed.
- is.convex
An irrelevant warning was issued (for non-convex polygons).
Fixed.
spatstat 1.21-1 (2010-11-11)
OVERVIEW
- Confidence intervals for K-function and other statistics
- Bug fixes for smoothing and relative risk estimation
NEW FUNCTIONS
- varblock
Variance estimation (and confidence intervals)
for summary statistics such as Kest, using subdivision technique
- bw.stoyan
Bandwidth selection by Stoyan's rule of thumb.
- which.max.im
Applied to a list of images, this determines which image
has the largest value at each pixel.
- as.array.im
Convert image to array
SIGNIFICANT USER-VISIBLE CHANGES
- smooth.ppp, markmean, sharpen.ppp, relrisk, bw.relrisk
Further acceleration achieved.
- Kest
Argument 'correction' now explicitly overrides automatic defaults
- plot.fv
More robust handling of 'shade'
BUG FIXES
- relrisk
Format of relrisk(at="points") was incorrect.
Fixed.
- bw.relrisk
Result was incorrect in the default case method="likelihood"
because of previous bug.
Fixed.
- Jdot, Jcross, Jmulti
Return value did not include the hazard function, when correction="km"
Fixed.
- Jdot, Jcross, Jmulti
Format of output was incompatible with format of Jest.
Fixed.
spatstat 1.21-0 (2010-11-05)
OVERVIEW
- Implemented Spatial Logistic Regression
- Implemented nonparametric estimation of relative risk
with bandwidth selection by cross-validation.
- Smoothing functions can handle a data frame of marks.
- New options in Kinhom; default behaviour has changed.
NEW FUNCTIONS
- slrm
Fit a spatial logistic regression model
- anova.slrm, coef.slrm, fitted.slrm, logLik.slrm, plot.slrm, predict.slrm
Methods for spatial logistic regression models
- relrisk
Nonparametric estimation of relative risk
- bw.relrisk
Automatic bandwidth selection by cross-validation
- default.rmhcontrol
Sets default values of Metropolis-Hastings parameters
SIGNIFICANT USER-VISIBLE CHANGES
- smooth.ppp, markmean
These functions now accept a data frame of marks.
- Kinhom
Default behaviour has changed.
New argument 'renormalise=TRUE' determines scaling of estimator
and affects bias and variance in small samples.
- residuals.ppm
Now also computes the score residuals.
- plot.im
New argument 'ribscale'
- plot.listof, plot.splitppp
New arguments panel.begin, panel.end and panel.args
- ppp
Now checks for NA/NaN/Inf values in the coordinates
- envelope.ppm
Changed default value of 'control'
New argument 'nrep'
- qqplot.ppm
Changed default value of 'control'
BUG FIXES
- marks<-.ppp, setmarks, %mark%
A matrix of marks was accepted by ppp()
but not by these assignment functions.
Fixed.
- density.ppp, smooth.ppp, sharpen.ppp, markmean
Crashed if the bandwidth was extremely small.
Fixed.
spatstat 1.20-5 (2010-10-25)
OVERVIEW
- Accelerated computations of kernel smoothing.
- Implemented Choi-Hall data sharpening.
NEW FUNCTIONS
- sharpen.ppp
Performs Choi-Hall data sharpening of a point pattern
SIGNIFICANT USER-VISIBLE CHANGES
- density.ppp, smooth.ppp
Computation has been vastly accelerated
for density(X, at="points") and smooth.ppp(X, at="points")
- Kinhom
Accelerated in case where lambda=NULL
- Vignette 'shapefiles' updated
spatstat 1.20-4
OVERVIEW
- New functions for inhomogeneous point patterns
and local analysis.
- Pair correlation function for 3D point patterns
- Minor improvements and bug fixes to simulation code and image functions
NEW FUNCTIONS
- pcf3est
Pair correlation function for 3D point patterns.
- Kscaled, Lscaled
Estimator of the template K function (and L-function)
for a locally-scaled point process.
- localpcf
Local version of pair correlation function
- identify.psp
Method for 'identify' for line segment patterns.
- as.im.matrix
Converts a matrix to a pixel image
SIGNIFICANT USER-VISIBLE CHANGES
- rMaternI, rMaternII
New argument 'stationary=TRUE' controls whether the
simulated process is stationary (inside the simulation window).
Default simulation behaviour has changed.
- im
New arguments 'xrange', 'yrange'
- envelope
Improvements to robustness of code.
BUG FIXES
- quadratcount
If V was a tessellation created using a factor-valued image,
quadratcount(X, tess=V) crashed with the error
"Tessellation does not contain all the points of X".
Fixed.
- [.im
If Z was a factor valued image and X was a point pattern
then Z[X] was not a factor.
Fixed.
spatstat 1.20-3 (2010-08-24)
OVERVIEW
- minor improvements (mostly internal).
NEW FUNCTIONS
- unmark.ppx
Method for 'unmark' for general space-time point patterns
SIGNIFICANT USER-VISIBLE CHANGES
- plot.ppx
Now handles marked patterns, in two-dimensional case
- as.psp.psp
Default value of argument 'check' set to FALSE
spatstat 1.20-2 (2010-08-10)
OVERVIEW
- Extensions to minimum contrast estimation.
- Bug fix in simulation of Lennard-Jones model.
- More support for distance functions.
- Changes to point process simulations.
NEW FUNCTIONS
- thomas.estpcf
Fit Thomas process model by minimum contrast using the
pair correlation function (instead of the K-function).
- matclust.estpcf
Fit Matern Cluster model by minimum contrast using the
pair correlation function (instead of the K-function).
- lgcp.estpcf
Fit log-Gaussian Cox process model by minimum contrast using the
pair correlation function (instead of the K-function).
- contour.distfun, persp.distfun
Methods for 'contour' and 'persp' for distance functions
- default.expand
Computes default window for simulation of a fitted point process model.
SIGNIFICANT USER-VISIBLE CHANGES
- kppm
Models can now be fitted using either the K-function
or the pair correlation function.
- ppm
The list of covariates can now include windows
(objects of class 'owin'). A window will be treated
as a logical covariate that equals TRUE inside the window
and FALSE outside it.
- plot.distfun
Pixel resolution can now be controlled.
- envelope.ppm, qqplot.ppm
The default value of 'control' has changed;
simulation results may be slightly different.
- rmh
Slightly accelerated.
BUG FIXES
- rmh
Simulation of the Lennard-Jones model (cif = 'lennard') was incorrect
due to an obscure bug, introduced in spatstat 1.20-1.
Fixed.
- thomas.estK, matclust.estK, lgcp.estK
The value of 'lambda' (if given)
was ignored if X was a point pattern.
Fixed.
spatstat 1.20-1 (2010-07-26)
OVERVIEW
- Further increases in speed and efficiency of ppm and rmh
- New pairwise interaction model
NEW FUNCTIONS
- DiggleGatesStibbard
Diggle-Gates-Stibbard pairwise interaction for use in ppm()
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
has been accelerated by a factor of 10 for the BadGey interaction.
- rmh
simulation of the Lennard-Jones model (cif='lennard')
has been greatly accelerated.
- rmh, rmhmodel.ppm
Point process models fitted by ppm() using the DiggleGatesStibbard
interaction can be simulated automatically using rmh.
BUG FIXES
- fitin
The plot of a fitted Hardcore interaction was incorrect.
Fixed.
spatstat 1.20-0
OVERVIEW
- spatstat now contains over 1000 functions.
- Substantial increase in speed and efficiency
of model-fitting code.
- Changes to factor-valued images.
SIGNIFICANT USER-VISIBLE CHANGES
- ppm
has been accelerated by a factor of 10,
and can handle datasets with 20,000 points,
for the following interactions:
DiggleGratton, Fiksel, Geyer, Hardcore, Strauss, StraussHard
- predict.ppm
accelerated by a factor of 3 (when type = "cif")
with vastly reduced memory requirements
for the following interactions:
DiggleGratton, Fiksel, Geyer, Hardcore, Strauss, StraussHard
- pixel images (class "im")
The internal representation of factor-valued images has changed.
Existing objects in the old format should still work.
- im
The syntax for creating a factor-valued image has changed.
Argument 'lev' has been deleted.
- ppm
Some warnings have been reworded for greater clarity.
BUG FIXES
- [.im
Mishandled some factor-valued images.
Fixed.
- hist.im
Produced slightly erroneous output for some factor-valued images.
Fixed.
- plot.owin
Filled polygons appeared to contain criss-cross lines
on some graphics drivers.
Fixed.
- deltametric
Did not handle windows with different enclosing frames
(error message: 'dA and dB are incompatible')
Fixed.
- quadratcount
Crashed if the pattern was empty and the window was a rectangle.
(Noticed by Sandro Azaele)
Fixed.
- rNeymanScott
Crashed if the parent process realisation was empty.
(Noticed by Sandro Azaele)
Fixed.
spatstat 1.19-3 (2010-06-17)
ACKNOWLEDGEMENTS
- We thank David Dereudre for contributions.
OVERVIEW
- Urgent bug fix to Metropolis-Hastings for Lennard-Jones model.
- Miscellaneous additions to plotting and colour management.
NEW FUNCTIONS
- col2hex, rgb2hex, paletteindex, samecolour
Functions for converting and comparing colours.
- plot.envelope
New method for plotting envelopes.
By default the area between the upper and lower envelopes
is shaded in grey.
SIGNIFICANT USER-VISIBLE CHANGES
- plot.fasp
If the entries in the array are envelopes,
they are plotted using plot.envelope
(hence the envelope region is shaded grey).
- plot.fv
Now displays mathematical notation for each curve,
if legendmath=TRUE.
- print.fv
Now prints the available range of 'r' values
as well as the recommended range of 'r' values.
BUG FIXES
- rmh
Simulation of Lennard-Jones model was incorrect;
the simulations were effectively Poisson patterns.
(Spotted by David Dereudre.)
Fixed.
- plot.fv
Did not correctly handle formulas that included I( )
Fixed.
spatstat 1.19-2 (2010-06-09)
ACKNOWLEDGEMENTS
- We thank Jorge Mateu, Michael Sumner and Sebastian Luque
for contributions.
OVERVIEW
- More support for fitted point process models and pixel images.
- Improved plotting of pixel images and envelopes.
- Simulation algorithm for Lennard-Jones process.
- Improvements and bug fixes to envelopes.
- Bug fixes to Metropolis-Hastings simulation.
NEW FUNCTIONS
- pairs.im
Creates a scatterplot matrix for several pixel images.
- model.frame.ppm
Method for 'model.frame' for point process models.
- sort.im
Method for 'sort' for pixel images.
SIGNIFICANT USER-VISIBLE CHANGES
- plot.fv, plot.fasp
New argument 'shade' enables confidence intervals
or significance bands to be displayed as filled grey shading.
- LennardJones
The parametrisation of this interaction function has been changed.
- rmh, rmhmodel
These functions will now simulate a point process model
that was fitted using the LennardJones() interaction.
- rmh.default, rmhmodel.default
These functions will now simulate a point process model
with the Lennard-Jones interaction (cif='lennard').
- ecdf
This function now works for pixel images.
- dim, row, col
These functions now work for pixel images.
- order
This function now works for pixel images.
- [.im and [<-.im
The subset index can now be any valid subset index for a matrix.
- density.ppp, smooth.ppp
The return value now has attributes 'sigma' and 'varcov'
reporting the smoothing bandwidth.
- plot.im
The argument 'col' can now be a 'colourmap' object.
This makes it possible to specify a fixed mapping between
numbers and colours (e.g. so that it is consistent between
plots of several different images).
- rmh, spatstat.options
spatstat.options now recognises the parameter 'expand'
which determines the default window expansion factor in rmh.
- rmh
Improved handling of ppm objects with covariates.
- kstest
The 'covariate' can now be one of the characters "x" or "y"
indicating the Cartesian coordinates.
BUG FIXES
- model.matrix.ppm
For a fitted model that used a large number of quadrature points,
model.matrix.ppm sometimes reported an internal error about mismatch
between the model matrix and the quadrature scheme.
Fixed.
- plot.ppx
Minor bugs fixed.
- rmh
In rare cases, the simulated point pattern
included multiple points at the origin (0,0).
(Bug introduced in spatstat 1.17-0.)
Fixed.
- rmh, rmhmodel.ppm
Crashed when applied to a fitted multitype point process model
if the model involved more than one covariate image.
(Spotted by Jorge Mateu)
Fixed.
- density.psp
If any segment had zero length, the result contained NaN values.
(Spotted by Michael Sumner and Sebastian Luque.)
Fixed.
- envelope
Crashed with fun=Lest or fun=Linhom if the number of points in
a simulated pattern exceeded 3000.
Fixed.
- plot.kstest
Main title was corrupted if the covariate was a function.
Fixed.
spatstat 1.19-1 (2010-05-25)
OVERVIEW
- New dataset: replicated 3D point patterns.
- Improvements to Metropolis-Hastings simulation code.
- More support for hyperframes.
- Bug fixes.
NEW DATASETS
- osteo:
Osteocyte Lacunae data: replicated 3D point patterns
NEW FUNCTIONS
- rbind.hyperframe:
Method for rbind for hyperframes.
- as.data.frame.hyperframe:
Converts a hyperframe to a data frame.
SIGNIFICANT USER-VISIBLE CHANGES
- Fiksel:
Fitted point process models (class ppm) with the Fiksel()
double exponential interaction can now be simulated by rmh.
- rmh.default:
Point processes with the Fiksel interaction can now be
simulated by specifying parameters in rmh.default.
- logLik.ppm:
New argument 'warn' controls warnings.
- profilepl:
No longer issues spurious warnings.
BUG FIXES
- Hardcore, rmh:
Simulation of the 'Hardcore' process was incorrect.
The hard core radius was erroneously set to zero
so that the simulated patterns were Poisson.
Fixed.
- fitin:
A plot of the pairwise interaction function of a fitted model,
generated by plot(fitin(model)) where model <- ppm(...),
was sometimes incorrect when the model included a hard core.
Fixed.
spatstat 1.19-0 (2010-05-16)
OVERVIEW
- Numerous bugs fixed in the implementation of
the Huang-Ogata approximate maximum likelihood method.
- New interpoint interaction model.
NEW FUNCTIONS
- Fiksel:
new interpoint interaction: Fiksel's double exponential model.
SIGNIFICANT USER-VISIBLE CHANGES
- runifpoint, rpoispp, envelope
These functions now issue a warning if the number of random points
to be generated is very large. This traps a common error in
simulation experiments.
BUG FIXES
- predict.ppm, fitted.ppm:
Predictions and fitted values were incorrect for
objects fitted using ppm(..., method="ho").
Fixed.
- logLik, AIC:
Values of logLik() and AIC() were incorrect for
objects fitted using ppm(..., method="ho").
Fixed.
- profilepl:
Results were incorrect if the argument 'method="ho"' was used.
Fixed.
- fitin
The result of fitin() was incorrect for
objects fitted using ppm(..., method="ho").
Fixed.
- rmhcontrol:
rmhcontrol(NULL) generated an error.
Fixed.
spatstat 1.18-4 (2010-05-02)
ACKNOWLEDGEMENTS
- We thank Michael Sumner for contributions.
BUG FIXES
- pixellate.psp: segments shorter than one pixel width
were measured incorrectly if the 'weights' argument was present.
Fixed.
NEW FUNCTIONS
- pairdist.ppx, crossdist.ppx, nndist.ppx, nnwhich.ppx:
Methods for pairdist, crossdist, nndist, nnwhich
for multidimensional point patterns (class 'ppx')
- runifpointx, rpoisppx:
Random point patterns in any number of dimensions
- boxx:
Multidimensional box in any number of dimensions
- diameter.boxx, volume.boxx, shortside.boxx, eroded.volumes.boxx:
Geometrical computations for multidimensional boxes
- sum.im, max.im, min.im:
Methods for sum(), min(), max() for pixel images.
- as.matrix.ppx:
Convert a multidimensional point pattern to a matrix
SIGNIFICANT USER-VISIBLE CHANGES
- plot.ppp: New argument 'zap'
- diameter: This function is now generic,
with methods for "owin", "box3" and "boxx"
- eroded.volumes: This function is now generic,
with methods for "box3" and "boxx"
spatstat 1.18-3 (2010-04-19)
ACKNOWLEDGEMENTS
- We thank Michael Sumner for contributions.
BUG FIXES
- pixellate.psp: segments shorter than one pixel width
were measured incorrectly. Fixed.
- fv: 'alim' not handled correctly. Fixed.
NEW FUNCTIONS
- smooth.fv:
Applies spline smoothing to the columns of an fv object.
spatstat 1.18-2 (2010-04-10)
ACKNOWLEDGEMENTS
- We thank Michael Sumner for contributions.
NEW FUNCTIONS
- Gfox, Jfox:
Foxall's G and J functions
- as.owin.distfun:
New method for as.owin extracts the domain of a distfun object.
SIGNIFICANT USER-VISIBLE CHANGES
- distfun: objects of class 'distfun', when called as functions,
will now accept either two vectors (x,y) or a point pattern x.
- Hest: this function can now compute the Hanisch estimator.
It now has arguments 'r', 'breaks' and 'correction',
like other summary functions.
- Hest: new argument 'conditional'.
BUG FIXES
- pixellate.psp: Values were sometimes incorrect due to coding error.
(Spotted by Michael Sumner)
Fixed.
- kstest: Crashed if the covariate contained NA's.
Fixed.
- kstest: Crashed if X was a multitype point pattern
in which some mark values were unrepresented.
Fixed.
- lurking: Minor bug in handling of NA values.
Fixed.
- Hest: labels of columns were incorrect.
Fixed.
spatstat 1.18-1 (2010-03-19)
ACKNOWLEDGEMENTS
- we thank Andrew Bevan and Ege Rubak for suggestions.
NEW FUNCTIONS
- Hardcore: Hard core interaction (for use in ppm)
- envelope.pp3: simulation envelopes for 3D point patterns
- npoints: number of points in a point pattern of any kind
SIGNIFICANT USER-VISIBLE CHANGES
- rmh.ppm, rmhmodel.ppm:
It is now possible to simulate Gibbs point process models
that are fitted to multitype point patterns using a
non-multitype interaction, e.g.
data(amacrine)
fit <- ppm(amacrine, ~marks, Strauss(0.1))
rmh(fit, ...)
- rmh.ppm, rmhmodel.ppm, rmh.default, rmhmodel.default:
Hard core models can be simulated.
- rmh.default, rmhmodel.default:
The argument 'par' is now required to be a list, in all cases
(previously it was sometimes a list and sometimes a vector).
- Fest:
Calculation has been accelerated in some cases.
- summary.pp3 now returns an object of class 'summary.pp3'
containing useful summary information. It is plotted by
'plot.summary.pp3'.
- F3est, G3est, K3est: these functions now accept
'correction="best"'
- union.owin, intersect.owin:
these functions now handle any number of windows.
- envelope.ppp, envelope.ppm, envelope.kppm:
argument lists have changed slightly
BUG FIXES
- Fest: The result of Fest(X, correction="rs") had a slightly
corrupted format, so that envelope(X, Fest, correction="rs")
in fact computed the envelopes based on the "km" correction.
(Spotted by Ege Rubak).
Fixed.
- rmh (rmh.ppm, rmhmodel.ppm):
rmh sometimes failed for non-stationary point process models,
with a message about "missing value where TRUE/FALSE needed".
(Spotted by Andrew Bevan).
Fixed.
- diagnose.ppm, lurking:
Calculations were not always correct if the model
had conditional intensity equal to zero at some locations.
Fixed.
- ppm, profilepl:
If data points are illegal under the model (i.e. if any
data points have conditional intensity equal to zero)
the log pseudolikelihood should be -Inf but was sometimes
returned as a finite value. Thus profilepl did not always
work correctly for models with a hard core.
Fixed.
- F3est, G3est:
Debug messages were printed unnecessarily.
Fixed.
spatstat 1.18-0 (2010-03-10)
ACKNOWLEDGEMENTS
- we thank Ege Rubak and Tyler Dean Rudolph for suggestions.
HEADLINES
- A point pattern is now allowed to have a data frame of marks
(previously the marks had to be a vector).
- Extended capabilities for 'envelope' and 'kstest'.
NEW FUNCTIONS
- pixellate.psp, as.mask.psp
Convert a line segment pattern to a pixel image or binary mask
- as.data.frame.im
Convert a pixel image to a data frame
SIGNIFICANT USER-VISIBLE CHANGES
- A point pattern is now allowed to have a data frame of marks
(previously the marks had to be a vector).
- Many functions in spatstat now handle point patterns with
a data frame of marks.
These include print.ppp, summary.ppp, plot.ppp, split.ppp.
- finpines, nbfires, shapley:
The format of these datasets has changed.
They are now point patterns with a data frame of marks.
- envelope() is now generic, with methods for "ppp", "ppm" and "kppm".
- kstest() now handles multitype point patterns and
multitype point process models.
- nnclean() now returns a point pattern with a data frame of marks.
- plot.ppp() has new argument 'which.marks' to select one column
from a data frame of marks to be plotted.
- plot.ppp() now handles marks that are POSIX times.
- complement.owin now handles any object acceptable to as.owin.
BUG FIXES
- erosion(w) and opening(w) crashed if w was not a window.
Fixed.
- diameter() and eroded.areas() refused to work if w was not a window.
Fixed.
spatstat 1.17-6 (2010-02-09)
ACKNOWLEDGEMENTS
- We thank Simon Byers and Adrian Raftery for generous contributions.
OVERVIEW
- Nearest neighbour clutter removal algorithm
- New documentation for the 'fv' class.
- Minor improvements and bug fixes.
NEW FUNCTIONS
- nnclean: Nearest neighbour clutter removal for recognising features
in spatial point patterns. Technique of Byers and Raftery (1998)
[From original code by Simon Byers and Adrian Raftery,
adapted for spatstat.]
- marks.ppx, marks<-.ppx: Methods for extracting and changing marks
in a multidimensional point pattern
- latest.news: print news about the current version of the package
SIGNIFICANT USER-VISIBLE CHANGES
- news: spatstat now has a NEWS file which can be printed by
typing news(package="spatstat").
- areaGain, areaLoss: New algorithms in case exact=TRUE.
Syntax slightly modified.
- with.hyperframe:
- The result now inherits 'names' from the row names
of the hyperframe.
- New argument 'enclos' controls the environment
in which the expression is evaluated.
- The algorithm is now smarter at simplifying the result
when simplify=TRUE.
- update.ppm: Tweaked to improve the ability of ppm objects
to be re-fitted in different contexts.
ADVANCED USERS ONLY
- Documentation for the class 'fv' of function value tables
- fv: Creates an object of class 'fv'
- cbind.fv, collapse.fv: Combine objects of class 'fv'
- bind.fv: Add additional columns of data to an 'fv' object
BUG FIXES
- "$<-.hyperframe" destroyed the row names of the hyperframe.
Fixed.
- model.matrix.ppm had minor inconsistencies.
Fixed.
- ppm: The fitted coefficient vector had incorrect format
in the default case of a uniform Poisson process.
Fixed.
- plot.ppx: Crashed if the argument 'main' was given.
Fixed.
- envelope.ppp: Crashed if the object returned by 'fun'
did not include a column called "theo".
Fixed.