- avoided accessing ppp objects' marks directly.
- cleaned up the code
- pkgdown site declared in DESCRIPTION URL.
- figure width is set to 5cm in the vignette to make the figures readable.
- NAMESPACE cleaned up.
-
Smooth.wmppp()
smooths wmppp's to map individual values of functions such as$M$ in the neighborhood of points.
- C code cleaned up.
Dhat()
code modified according to spatstat.explore v.3.2-1 new features (thanks to Prof. Adrian Baddeley).
kwmppp()
creates a kriged, weighted, marked, planar point pattern to map individual distance-based statistics.plot.kwmppp()
(called asplot()
) allows plottingkwmppp
objects.- argument
verbose
in all envelope functions allows to hide the progress of simulations.
Ktest()
automatically drops 0 inr
to avoid an obscure error message.
- Updates in the spatstat package: dbmss has been updated to address the replacement of spatstat.core.
- dbmss no longer depends on ggplot2.
- Deprecated
aes_(x=~var)
aesthetics in ggplots replaced byaes(x=.data$var)
. - documentation improvements.
- The new package spatstat.random is now imported.
- Following R fixed bug PR#18151,
mhat()
code is modified by Martin Maechler.
- An error occurred when a function was called with
dbmss::
prefix andCheckArguments = TRUE
and dbmss was loaded.
fmla
argument added inautoplot.envelope()
.autoplot.fv()
added.autoplot.wmppp()
added.- CodeFactor optimization applied.
- Suggests rmarkdown (yihui/knitr#1864)
- Continuous integration by GitHub Actions.
- Updates in the spatstat package: dbmss has been updated to address the creation of spatstat.core et al.
- argument
main
inautoplot()
was ignored.
- tibbles are accepted by
wmppp()
. - Precision of point coordinates can be set in
rRandomPositionK()
.
autoplot()
failed withLenvelope
objects.
autoplot()
forenvelope
objects.- Vignettes by pkgdown
- Better consistency of bandwidth choice in
Kd
andm
estimation. An article is added in the online documentation.
- Fewer imported functions in NAMESPACE.
Kdhat()
density was normalized incorrectly with Approximate=TRUE and small r values.
- More robust check of arguments.
- Rcpp >= 0.12.14 required.
init.c
no longer necessary. - Introduction vignette.
- On Travis and codecov.io now.
- NEWS in Markdown.
wmppp()
accepts characters inPointType
. APointName
column is searched to set the row names of the marks.
wmppp()
failed if some point laid outside the window.
- On GitHub now.
- Individual values of m and M available from
Mhat
andmhat
with argumentIndividual
. - Point names can be specified as row names of the dataframe passed to
wmppp()
. They are preserved in thefv
object returned by individualMhat
andmhat
to identify points more easily.
- Far less memory is used to compute M and approximated m functions. The ratio of necessary memory equals that of the number of reference points to the total number of points.
[.wmppp
function added to spatstat generics
- Declaration of the required versions of R and spatstat in DESCRIPTION to avoid error in CRAN test on oldrel Windows platform.
- Updates in the spatstat package: dbmss has been updated to address the creation of spatstat.util.
- C routines registration to comply with R 3.4 policy.
- Explicit export of all non-internal functions instead of
exportPattern("^[[:alpha:]]+")
. - Import of package cubature reduced to function
adaptIntegrate()
.
- Enforcement of the use of C++11 to avoid warnings due to RcppParallel.
- Distance matrices can be used instead of point patterns in
Mhat
,mhat
andKdhat
and their envelopes. - The estimation of density used by
Kd
now includes reflection: the estimation ofKd
is more accurate than before, but values may vary from previous versions close to the minimum distance. - LazyData is used to save memory.
- Weighted argument was ignored in
Kdhat
(bug introduced in v.2.2-4). Fixed.
Mhat
andmhat
C++ code is now parallelized thanks to RcppParallel.- Small performance improvement of
Kdhat
(around 5% faster).
- Updated CITATION: the paper about this package has been published: Eric Marcon, Stephane Traissac, Florence Puech, Gabriel Lang (2015). Tools to Characterize Point Patterns: dbmss for R. Journal of Statistical Software, 67(3), 1-15.
- Intervals of estimation of the Kd function are narrower when the distance range is small with respect to the window to improve precision.
- Distances pairs more than twice the maximum value of
r
where ignored when using the approximate estimation ofKd
, soKd
was overestimated whenr
was smaller than usual (much less than the default values). Corrected.
- Adjust argument ignored in
Kdhat
. Fixed.
m
function added.- Default value
Controls=NULL
forDhat
: controls are by default all points except for cases. Kd
andm
are both computed by default up to one third of the diameter of the window, other options are added.Original
andAdjust
arguments allow to change the default bandwith used byKd
andm
.
- Typo in internal function name
FillEnveloppe
corrected:FillEnvelope
is the new name.
- Default neighbor type for
Khat
andKenvelope
is the same as reference type instead of "". Kd
estimation now accepts "" as reference type to use all points.- Approximate argument to calculate
Kd
on big data sets with little RAM.
FillEnvelope
returned wrong quantiles for local confidence intervals. Fixed.
- Global confidence intervals are now defined even when
NA
values are found in the simulations. Kd
is computed by default up to the median (instead of mean) distance between points.
Kdhat
with Reference and Neighbor points of different types was calculated with only half of point pairs and sometimes crashed R. Fixed.
Kdhat
andM
are computed through C++ loops instead of spatstatpairdist()
. Much faster, and uses far less memory.
Kdhat
andM
propose a default value for argumentr
.- Vignette added.
Kdhat
probability density estimation is cut at the lowest distance between points instead of 0.
Kdhat
with Reference and Neighbor points of the same type andWeighted=TRUE
returned an error. Fixed.
- Minor corrections, mainly comments and formating.
- Most code rewritten.
- Names of functions
X.r
became Xhat. - Point patterns are now of class
wmppp
. - Results are of class
fv
, envelopes of classenvelope
.
- NEWS file added.
- Documentation format improved.
- The default behavior of
Kd
is that of Duranton and Overman (2005). An optional parameter is added to used improved bandwith selection.
- The density estimation of
Kd
was run twice. Fixed.
- First version on CRAN. Versions 1.2.2 and 1.2.3 contain faster examples to follow CRAN requirements.
Kinhom
function added.
- First version.