-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathupdates.Rnw
4547 lines (3499 loc) · 155 KB
/
updates.Rnw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{Sweave}
\usepackage{bm}
\usepackage[bottom=0.5cm, right=1.5cm, left=1.5cm, top=1.5cm]{geometry}
% \VignetteIndexEntry{Summary of Recent Updates to the Spatstat Family}
% $Revision: 1.76 $ $Date: 2024/11/18 08:18:36 $
\newcommand{\pkg}[1]{\texttt{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\R}{{\sf R}}
\newcommand{\spst}{\pkg{spatstat}}
\newcommand{\Spst}{\pkg{Spatstat}}
\begin{document}
\bibliographystyle{plain}
<<echo=FALSE,results=hide>>=
library(spatstat)
x <- read.dcf(file = system.file("DESCRIPTION", package = "spatstat"),
fields = c("Version", "Date"))
sversion <- as.character(x[,"Version"])
sdate <- as.character(x[,"Date"])
options(useFancyQuotes=FALSE)
@
\title{Summary of recent updates to \spst}
\author{Adrian Baddeley, Rolf Turner and Ege Rubak}
\date{\today}
\maketitle
\thispagestyle{empty}
<<echo=FALSE,results=hide>>=
readSizeTable <- function(fname) {
if(is.null(fname) || !file.exists(fname)) return(NULL)
a <- read.table(fname, header=TRUE)
a$date <- as.Date(a$date)
return(a)
}
getSizeTable <- function(packagename="spatstat", tablename="packagesizes.txt") {
fname <- system.file("info", tablename, package=packagename)
out <- readSizeTable(fname)
if(is.null(out)) {
fname <- system.file("doc", tablename, package=packagename)
out <- readSizeTable(fname)
}
return(out)
}
RemoveDevel <- function(sizetable) {
## remove entries with fractional version numbers
if(is.null(sizetable)) return(NULL)
ver <- sizetable$version
isdevel <- sapply(ver, function(x) { length(unlist(package_version(x))) > 3 })
st <- if(all(isdevel)) NULL else sizetable[!isdevel, , drop=FALSE]
return(st)
}
counts <- c("nhelpfiles", "nobjects", "ndatasets", "Rlines", "srclines")
mergeSizeTables <- function(a, b, breakupdate, allow.devel=FALSE) {
#' a is the running total for spatstat; b is a sub-package.
#' breakupdate is the date when the code in b was removed from spatstat
#' so that the size of 'b' must be added to 'a' for all dates >= breakupdate
if(!allow.devel) b <- RemoveDevel(b)
if(is.null(b)) return(a)
adates <- a$date
bdates <- b$date
alldates <- sort(unique(c(adates,bdates)))
if(missing(breakupdate)) breakupdate <- min(bdates)
#' functions to determine, for any given date,
#' the relevant (latest) row of the table
aok <- rev(!duplicated(rev(adates)))
arowfun <- approxfun(adates[aok], seq_along(adates)[aok],
method="constant", f=0, rule=2, yleft=0)
bok <- rev(!duplicated(rev(bdates)))
browfun <- approxfun(bdates[bok], seq_along(bdates)[bok],
method="constant", f=0, rule=2, yleft=0)
result <- NULL
for(k in seq_along(alldates)) {
thedate <- alldates[k]
i <- arowfun(thedate)
j <- browfun(thedate)
#' i > 0 because spatstat's founding date is earlier than any sub-package
nextrow <- a[i, ]
if(j > 0 && thedate >= breakupdate) {
#' add contribution from 'b'
nextrow[, counts] <- nextrow[, counts] + b[j, counts]
}
result <- rbind(result, nextrow)
}
return(result)
}
## Get histories of all sub-packages
## Package formerly known as 'spatstat'
z <- getSizeTable()
## installed sub-packages - access via the installed sub-packages
zutils <- getSizeTable("spatstat.utils")
zdata <- getSizeTable("spatstat.data")
zunivar <- getSizeTable("spatstat.univar")
zsparse <- getSizeTable("spatstat.sparse")
zgeom <- getSizeTable("spatstat.geom")
zrandom <- getSizeTable("spatstat.random")
zexplore <- getSizeTable("spatstat.explore")
zmodel <- getSizeTable("spatstat.model")
zlinnet <- getSizeTable("spatstat.linnet")
## other sub-packages - access via stored copies of package size files
## defunct package spatstat.core
zcore <- getSizeTable("spatstat", "spatstatcoresize.txt")
## extension packages
zlocal <- getSizeTable("spatstat", "spatstatlocalsize.txt")
zgui <- getSizeTable("spatstat", "spatstatguisize.txt")
zKnet <- getSizeTable("spatstat", "spatstatKnetsize.txt")
## Merge histories starting at the 'split dates'
z <- mergeSizeTables(z, zutils, "2017-03-22")
z <- mergeSizeTables(z, zdata, "2017-09-23")
z <- mergeSizeTables(z, zsparse, "2020-11-04")
BigSplitDay <- "2020-12-14"
z <- mergeSizeTables(z, zgeom, BigSplitDay)
z <- mergeSizeTables(z, zcore, BigSplitDay)
z <- mergeSizeTables(z, zlinnet, BigSplitDay)
z <- mergeSizeTables(z, zrandom, "2022-02-12")
CoreSplitDay <- "2020-05-25" # size of 'core' drops to 0 on this date
z <- mergeSizeTables(z, zexplore, CoreSplitDay)
z <- mergeSizeTables(z, zmodel, CoreSplitDay)
z <- mergeSizeTables(z, zunivar, "2024-04-21")
## extension packages: these never overlapped spatstat
z <- mergeSizeTables(z, zlocal)
z <- mergeSizeTables(z, zgui)
z <- mergeSizeTables(z, zKnet)
## Now summarise
currentcount <- z[nrow(z), counts]
bookcount <- z[z$version == "1.42-0", counts]
changes <- currentcount - bookcount
newobj <- changes[["nobjects"]]
newdat <- changes[["ndatasets"]] + 1 # counting rule doesn't detect redwood3
newcode <- changes[["Rlines"]] + changes[["srclines"]]
bookcode <- bookcount[["Rlines"]] + bookcount[["srclines"]]
currentcode <- currentcount[["Rlines"]] + currentcount[["srclines"]]
growth <- signif((100 * newcode)/bookcode, digits=2)
@ %$
This is a summary of changes to the \spst\ package
that have occurred since the publication of the
book \cite{baddrubaturn15} in 2015.
Since then, the \spst\ family has grown by \Sexpr{growth}\%,
including \Sexpr{newobj} new functions and \Sexpr{newdat} new datasets,
and now contains more than \Sexpr{10 * floor(currentcode/10000)},000 lines of code.
This document summarises the most important changes.
<<echo=FALSE,results=hide,fig=FALSE>>=
options(SweaveHooks=list(fig=function() par(mar=0.2+c(2,4,2,0))))
Plot <- function(fmla, ..., dat=z) {
yvals <- eval(as.expression(fmla[[2]]), envir=dat)
plot(fmla, ..., data=dat, type="l", xlab="", lwd=2, ylim=c(0, max(yvals)))
}
@
\SweaveOpts{eps=TRUE}
\setkeys{Gin}{width=0.5\textwidth}
\centerline{
<<fig=TRUE,echo=FALSE,results=hide>>=
Plot((Rlines + srclines)/1000 ~ date, ylab="Lines of code (x 1000)",
main="Spatstat growth")
lines(srclines/1000 ~ date, data=z)
text(as.Date("2015-01-01"), 9.5, "C code")
text(as.Date("2015-01-01"), 60, "R code")
@
}
\setcounter{tocdepth}{1}
\tableofcontents
\newpage
\newpage
\section{Version information}
The book \cite{baddrubaturn15}, published in December 2015,
covered \spst\ version \texttt{1.42-0}, released in May 2015.
<<echo=FALSE,results=hide>>=
## Tabulate latest version numbers of packages
vtable <- data.frame(package="spatstat", version=sversion, date=as.Date(sdate))
AppendVersion <- function(pkg, sizetable, v, allow.devel=FALSE) {
if(!allow.devel) sizetable <- RemoveDevel(sizetable)
if(is.null(sizetable)) return(v)
lastrow <- sizetable[nrow(sizetable), , drop=FALSE]
if(is.null(lastrow)) return(v)
rbind(v, data.frame(package=pkg, version=lastrow[,"version"], date=as.Date(lastrow[,"date"])))
}
vtable <- AppendVersion("spatstat.utils", zutils, vtable)
vtable <- AppendVersion("spatstat.data", zdata, vtable)
vtable <- AppendVersion("spatstat.sparse", zsparse, vtable)
vtable <- AppendVersion("spatstat.univar", zunivar, vtable)
vtable <- AppendVersion("spatstat.geom", zgeom, vtable)
vtable <- AppendVersion("spatstat.random", zrandom, vtable)
vtable <- AppendVersion("spatstat.explore", zexplore, vtable)
vtable <- AppendVersion("spatstat.model", zmodel, vtable)
vtable <- AppendVersion("spatstat.linnet", zlinnet, vtable)
## move spatstat to the bottom
vtable <- rbind(vtable[-1, ], vtable[1, ])
## add extras
vtable <- AppendVersion("spatstat.local", zlocal, vtable)
vtable <- AppendVersion("spatstat.Knet", zKnet, vtable)
vtable <- AppendVersion("spatstat.gui", zgui, vtable)
@
The current versions of the \spst\ family of packages
(used to produce this document) are:
<<echo=FALSE>>=
print(vtable[,c(3,1,2)], row.names=FALSE)
@
\section{Package structure}
The original \pkg{spatstat} package grew to be very large.
It has now been split into a family of packages, to satisfy the requirements of CRAN.
This should not affect the user:
existing code will continue to work in the same way.
Typing \code{library(spatstat)} will load the familiar
\pkg{spatstat} package which can be used as before.
\subsection{Sub-packages}
Currently there are ten
sub-packages, called
\pkg{spatstat.utils},
\pkg{spatstat.data},
\pkg{spatstat.univar},
\pkg{spatstat.sparse},
\pkg{spatstat.geom},
\pkg{spatstat.random},
\pkg{spatstat.explore},
\pkg{spatstat.model},
\pkg{spatstat.linnet},
and \pkg{spatstat}.
\begin{itemize}
\item
The \code{spatstat} package now contains
only documentation and introductory material.
It provides beginner's introductions, vignettes, interactive demonstration
scripts, and a few help files summarising the package.
\item
The \pkg{spatstat.data} package now contains all the datasets
for \pkg{spatstat}.
\item
The \pkg{spatstat.utils} package
contains basic utility functions for \pkg{spatstat}.
\item
The \pkg{spatstat.univar} package
contains functions for estimating and manipulating
probability distributions of one-dimensional random variables.
\item
The \pkg{spatstat.sparse} package
contains functions for manipulating sparse arrays
and performing linear algebra.
\item
The \pkg{spatstat.geom} package
contains definitions of spatial objects (such as point patterns, windows
and pixel images) and code which performs geometrical operations.
\item
The \pkg{spatstat.random} package
contains functions for random generation of spatial patterns
and random simulation of models.
\item The \pkg{spatstat.explore} package contains the code for
exploratory data analysis and nonparametric analysis
of spatial data.
\item The \pkg{spatstat.model} package contains the code for model-fitting,
model diagnostics, and formal inference.
\item
The \pkg{spatstat.linnet} package
defines spatial data on a linear network,
and performs geometrical operations
and statistical analysis on such data.
\end{itemize}
\noindent\textbf{Installing:}
If you install \pkg{spatstat}, then the system will install all the
other sub-packages listed above.
\noindent\textbf{Running:}
If you type \code{library(spatstat)} in an \textsf{R} session,
the system will automatically load
\pkg{spatstat.data}, \pkg{spatstat.univar}, \pkg{spatstat.geom}, \pkg{spatstat.random},
\pkg{spatstat.explore}, \pkg{spatstat.model} and \pkg{spatstat.linnet}.
It will also silently \textbf{``import''}
\pkg{spatstat.utils} and \pkg{spatstat.sparse}.
To access the functions in \pkg{spatstat.utils} directly, you would need to
type \code{library(spatstat.utils)}. Similarly for \pkg{spatstat.sparse}.
\subsection{Extension packages}
There are also extension packages which provide additional capabilities
and must be loaded explicitly when you need them.
Currently there are three extension packages, with a fourth in development:
\begin{itemize}
\item \pkg{spatstat.local} for local model-fitting,
\item \pkg{spatstat.Knet} provides additional code for
analysing point patterns on a network.
\item \pkg{spatstat.gui} containing interactive graphics
functions,
\item \pkg{spatstat.sphere} for analysing point patterns on a sphere
(under development!)
\end{itemize}
%\pagebreak
\section{Precis of all changes}
Here is the text from the `overview' sections of
the News and Release Notes for each update.
\begin{itemize}
\item New package \pkg{spatstat.univar}.
\item Some functions from \pkg{spatstat.geom}, \pkg{spatstat.random}
and \pkg{spatstat.explore} have been moved to \pkg{spatstat.univar}.
\item packages \pkg{spatstat.geom}, \pkg{spatstat.random}
and \pkg{spatstat.explore} now depend on \pkg{spatstat.univar}.
\item Shortest path between two points on a network.
\item Boundary-corrected kernel density estimation on the positive half-line.
\item Relative risk estimation using diffusion.
\item Smoothing using diffusion.
\item Tessellations can have any kind of marks.
\item Bandwidth selection by non-random bootstrap.
\item More control over default colours.
\item Perspective plot of spatial point pattern with numerical marks.
\item Quantiles using linear approximation.
\item Extract the knots (jump points) of a weighted CDF.
\item List the history of all changes made to a function in spatstat.
\item More efficient prime factorisation.
\item Digits in the decimal representation of a number.
\item Easier control over quadrature schemes.
\item Some geometry code accelerated.
\item Corrected format of \texttt{gorillas} dataset.
\item The \spst\ family no longer depends on the packages
\pkg{maptools}, \pkg{sp} and \pkg{RandomFields}.
\item geometry code accelerated.
\item Spatially weighted median and quantile of mark values.
\item Boyce index.
\item code for fitting and simulating log-Gaussian Cox models has changed.
\item New vignette on function objects (class \texttt{"fv"} and
\texttt{"envelope"})
\item Vignette on shapefiles temporarily removed.
\item Integration of functions.
\item \texttt{clarkevans.test} modified.
\item Improvements to \texttt{envelope} methods.
\item Conditional simulation for Matern cluster process.
\item Improvements to \texttt{runifpoint} and \texttt{rpoispp}.
\item Extension of distance transform algorithm.
\item Improvement to progress reports.
\item Suppress annoying warnings.
\item Changed the calculation of standard errors in \texttt{density.ppp}
and \texttt{relrisk.ppp}.
\item Inline arithmetic for function tables (class \texttt{"fv"})
and arrays (class \texttt{"fasp"})
\item
Standard error calculation for \texttt{Smooth.ppp} (experimental)
\item
multitype pair correlation functions can save numerator and denominator.
\item
multitype inhomogeneous $J$ functions.
\item
More support for automatic bandwidth selection.
\item Standard errors are now available for \texttt{ppm} models
fitted using \texttt{gam}.
\item \texttt{linearKinhom} and \texttt{linearpcfinhom}
now automatically estimate the intensity.
\item \texttt{density.lpp} accepts bandwidth selection rules,
and has a simple default bandwidth.
\item Pair correlation functions allow more control over smoothing parameters.
\item Extension to support for one-dimensional smoothing kernels.
\item Improvements to \texttt{update} methods for point process models.
\item New \texttt{update} methods for classes \texttt{dppm} and \texttt{rppm}.
\item Generate truncated Poisson random variables.
\item reciprocal moment of Poisson variable conditioned to be positive.
\item Methods for \verb![[! and \verb![[<-! for hyperframes.
\item Colour map for \textsf{pH} values.
\item Restrict a colour map to a narrower range of values.
\item Integral of a one-dimensional density estimate.
\item \texttt{kppm} has been accelerated when
\texttt{method="palm"} or \texttt{"clik2"}.
\item \texttt{kppm} can save the history of the optimisation algorithm.
\item Faster algorithms for simulating cluster processes.
\item Penalised model-fitting for Neyman-Scott cluster process models.
\item Index of the strength of clustering
in a Neyman-Scott cluster process model.
\item Probability of having any siblings.
\item More information is printed about Neyman-Scott cluster process models.
\item Palm intensity diagnostic plot.
\item Convert several factors or factor-valued images
to a common set of levels.
\item Extension to \texttt{rjitter}
\item Alternative to \texttt{rjitter}
\item Quantile function as a function
\item Periodic edge correction for \textit{K} function.
\item Changed denominator in \textit{K} function and pair correlation function.
\item Bandwidth selection for adaptive kernel estimation of intensity.
\item U-shaped and inverted-U-shaped curves in \texttt{rhohat}.
\item Radial cumulative integral of an image.
\item New dataset \texttt{stonetools}.
\item Regularized model-fitting in \texttt{ppm} and \texttt{kppm}.
\item Residuals for recursively-partitioned models.
\item Residuals for any observed point pattern and an estimate of
its intensity.
\item Weighted measures and weighted integrals.
\item Improved approximation of intensity of Gibbs models.
\item Experimental code to represent (theoretical) point process models
\item Extract more information about a point process model.
\item kernel smoothing on a linear network.
\item linear network $K$ function and pair correlation function
based on Euclidean distance.
\item inhomogeneous linear network $J$ function.
\item Terminal vertices of a network.
\item A point pattern on a network can be plotted as cross-ticks.
\item The interactive graphics functions \texttt{iplot} and \texttt{istat}
have been removed from \spst\ into a new
extension package \pkg{spatstat.gui}.
\item The packages \pkg{tcltk} and \pkg{rpanel} are no longer
Suggested by \spst.
\item \spst\ now Imports the package \pkg{spatstat.sparse}.
\item \spst\ now Imports the package \pkg{spatstat.utils}.
\item \spst\ now requires the package \pkg{spatstat.data}
which contains the datasets.
\item \spst\ now suggests the package \pkg{fftwtools}.
\item Conditional simulation in \texttt{kppm}.
\item More diagnostics for spatial logistic regression models.
\item Increased numerical stability in \texttt{kppm}.
\item Simulation of the product shot noise Cox process.
\item Information criteria for model selection in \texttt{kppm}.
\item Estimation of the spatial covariance function of a pixel image
\item Modified handling of covariates in \texttt{slrm}
\item New options for \texttt{weighted.quantile}
\item Buffer tessellation
\item New function for jittering point patterns on a network.
\item Extensions to \texttt{rhohat}
\item \texttt{densityfun.ppp} handles query points outside original window
\item Extension to \texttt{discretise}.
\item Improvement to \texttt{densityEqualSplit}.
\item summary method for spatial logistic regression models
\item New options for \texttt{distmap.psp}
\item Improved output in \texttt{summary.mppm}
\item Increased speed for large datasets.
\item Variance calculations handle larger datasets.
\item Relative risk estimation on a network.
\item Leave-one-out density estimation on a network.
\item Add new vertices to a linear network.
\item More support for multi-dimensional patterns.
\item \texttt{predict.mppm} now works for multitype point process models.
\item Improved handling of \texttt{newdata} in \texttt{predict.mppm}
\item New datasets \texttt{concrete} and \texttt{btb}.
\item Changed default value of \texttt{stringsAsFactors}.
\item Function \texttt{lengths.psp} has been renamed \verb!lengths_psp!.
\item Tessellations on a linear network can now have marks.
\item More functions for manipulating tessellations on a linear network.
\item New functions for simulating point processes on a linear network.
\item Nearest Neighbour Index function can now return mark values.
\item Index of repulsion strength for determinantal point process models.
\item Nearest neighbours between two point patterns in any number of dimensions.
\item More options for handling bad simulation outcomes in \texttt{envelope}.
\item \texttt{mppm} accepts case weights.
\item Bandwidth selectors warn about extreme values of bandwidth.
\item Fast kernel estimation on a linear network using 2D kernels.
\item Extension of Scott's rule for bandwidth selection.
\item Cross-validated bandwidth selection on a linear network.
\item Random thinning and random labelling of spatial patterns
extended to different types of pattern.
\item Confidence intervals for multitype $K$ function.
\item Envelopes for balanced two-stage test
\item Extensions to adaptive intensity estimators
\item `Dartboard' tessellation using polar coordinates.
\item Standard error calculation for inverse-distance weighting.
\item Kernel estimate of intensity as a \texttt{function(x,y)}.
\item Extract discrete and continuous components of a measure.
\item Improvements and extensions to leverage and influence code.
\item Plot a line segment pattern using line widths.
\item Find connected components of each tile in a tessellation.
\item Geometrical operations on \texttt{distfun} objects.
\item Join vertices in a linear network.
\item Distance map and contact distribution for
rectangular structuring element.
\item Lurking variable plot for models fitted to several point patterns.
\item New dataset \code{cetaceans}.
\item Gamma correction for colour maps and image plots.
\item Class \code{units} has been renamed \code{unitname} to avoid package collision.
\item More support for tessellations.
\item Fixed longstanding bug in leverage and influence diagnostics.
\item Improvements and bug fixes for leverage and influence diagnostics.
\item Tighter bounding box for \code{psp}, \code{lpp}, \code{linnet} objects.
\item Improved layout in \code{plot.solist}
\item Tools to increase colour saturation.
\item Connected components of a 3D point pattern.
\item Accelerated computations on linear networks.
\item Accelerated simulation of determinantal point processes.
\item Improved printing of 3D point patterns.
\item Minor corrections to handling of unitnames.
\item Improvements to \texttt{ppm} and \texttt{update.ppm}.
\item Correction to \texttt{lohboot}
\item Numerous bug fixes for linear networks code.
\item Now handles disconnected linear networks.
\item Effect function is now available for all types of fitted model.
\item Geometric-mean smoothing.
\item A model can be fitted or re-fitted to a sub-region of data.
\item New fast algorithm for kernel smoothing on a linear network.
\item Leverage and influence diagnostics extended to Poisson/Gibbs models
fitted by logistic composite likelihood.
\item Two-stage Monte Carlo test.
\item Dirichlet/Voronoi tessellation on a linear network.
\item Thinning of point patterns on a linear network.
\item More support for functions and tessellations on a linear network.
\item Bandwidth selection for pair correlation function.
\item Pooling operations improved.
\item Operations on signed measures.
\item Operations on lists of pixel images.
\item Improved pixellation of point patterns.
\item Stieltjes integral extended.
\item Subset operators extended.
\item Greatly accelerated \texttt{rmh} when using \texttt{nsave}
\item Sufficient Dimension Reduction for point processes.
\item Alternating Gibbs Sampler for point process simulation.
\item New class of spatially sampled functions.
\item ROC and AUC extended to other types of point patterns and models.
\item More support for linear networks.
\item More support for infinite straight lines.
\item \spst\ now depends on the packages \pkg{nlme} and \pkg{rpart}.
\item Important bug fix in \code{linearK}, \code{linearpcf}
\item Changed internal format of \code{linnet} and \code{lpp} objects.
\item Faster computation in linear networks.
\item Bias correction techniques.
\item Bounding circle of a spatial object.
\item Option to plot marked points as arrows.
\item Kernel smoothing accelerated.
\item Workaround for bug in some graphics drivers affecting image orientation.
\item Non-Gaussian smoothing kernels.
\item Improvements to inhomogeneous multitype $K$ and $L$ functions.
\item Variance approximation for pair correlation function.
\item Leverage and influence for multitype point process models.
\item Functions for extracting components of vector-valued objects.
\item Recursive-partition point process models.
\item Minkowski sum, morphological dilation and erosion with any shape.
\item Minkowski sum also applicable to point patterns and line segment patterns.
\item Important bug fix in Smooth.ppp
\item Important bug fix in spatial CDF tests.
\item More bug fixes for replicated patterns.
\item Simulate a model fitted to replicated point patterns.
\item Inhomogeneous multitype $F$ and $G$ functions.
\item Summary functions recognise \texttt{correction="all"}
\item Leverage and influence code handles bigger datasets.
\item More support for pixel images.
\item Improved progress reports.
\item New dataset \texttt{redwood3}
\item Fixed namespace problems arising when spatstat is not loaded.
\item Important bug fix in leverage/influence diagnostics for Gibbs models.
\item Surgery with linear networks.
\item Tessellations on a linear network.
\item Laslett's Transform.
\item Colour maps for point patterns with continuous marks
are easier to define.
\item Pair correlation function estimates can be pooled.
\item Stipulate a particular version of a package.
\item More support for replicated point patterns.
\item More support for tessellations.
\item More support for multidimensional point patterns and point processes.
\item More options for one-sided envelopes.
\item More support for model comparison.
\item Convexifying operation.
\item Subdivide a linear network.
\item Penttinen process can be simulated (by Metropolis-Hastings or CFTP).
\item Calculate the predicted variance of number of points.
\item Accelerated algorithms for linear networks.
\item Quadrat counting accelerated, in some cases.
\item Simulation algorithms have been accelerated; simulation outcomes
are \emph{not} identical to those obtained from previous versions of \spst.
\item Determinantal point process models.
\item Random-effects and mixed-effects models for replicated patterns.
\item Dao-Genton test, and corresponding simulation envelopes.
\item Simulated annealing and simulated tempering.
\item spatstat colour tools now handle transparent colours.
\item Improvements to \verb![! and \texttt{subset} methods
\item Extensions to kernel smoothing on a linear network.
\item Support for one-dimensional smoothing kernels.
\item Mark correlation function may include weights.
\item Cross-correlation version of the mark correlation function.
\item Penttinen pairwise interaction model.
\item Improvements to simulation of Neyman-Scott processes.
\item Improvements to fitting of Neyman-Scott models.
\item Extended functionality for pixel images.
\item Fitted intensity on linear network
\item Triangulation of windows.
\item Corrected an edge correction.
\end{itemize}
\section{New datasets}
The following new datasets have been added.
These are now provided in the sub-package \pkg{spatstat.data}.
\begin{itemize}
\item \texttt{austates}: The states and large mainland territories of Australia
represented as polygonal regions forming a tessellation.
\item \texttt{redwood3}: a more accurate version of the \texttt{redwood} data.
\item \texttt{cetaceans}: point patterns of whale and dolphin sightings.
\item \texttt{concrete}: air bubbles in concrete.
\item \texttt{btb}: bovine tuberculosis occurrences.
\item \texttt{stonetools}: palaeolithic stone tools and bone fragments.
\end{itemize}
\section{New classes}
The following new classes of objects may be of use.
\begin{itemize}
\item \texttt{traj}:
Trajectory (history of function evaluations) in a model
that was fitted by optimisation.
\item \texttt{metric}: Class of distance metrics.
An object of class \texttt{metric} represents a distance metric
between points in two-dimensional space.
See \texttt{help(metric.object)}.
\item \texttt{ssf}:
Class of spatially sampled functions.
An object of class \texttt{"ssf"} represents a spatial function
which has been evaluated or sampled at an irregular set of points.
See \texttt{help(ssf)}.
\item \texttt{zclustermodel}:
Experimental. An object of class \texttt{zclustermodel} represents a
Neyman-Scott cluster point process model with specified parameter values
(whereas \texttt{kppm} represents such a model fitted to data).
\item \texttt{zgibbsmodel}:
Experimental. An object of class \texttt{zgibbsmodel} represents a
Gibbs point process model with specified parameter values
(whereas \texttt{ppm} represents such a model fitted to data).
\end{itemize}
\section{New Functions}
Following is a list of all the functions that have been added,
starting with the most recent additions.
\begin{itemize}
\item \texttt{default.image.colours}, \texttt{reset.default.image.colours}:
control the default colours used for plotting images in \texttt{spatstat}.
\item \texttt{shortestpath}:
Find the shortest path between two specified points on a network,
and return it as a line segment pattern.
\item \texttt{densityBC}:
An extension of density.default that includes boundary corrections
for truncation of the density to the positive half line.
\item \texttt{densityAdaptiveKernel.default}:
Variable-bandwidth boundary-corrected kernel density estimation.
\item \texttt{relriskHeat}, \texttt{relriskHeat.ppp}:
Relative risk estimation using diffusion.
\item \texttt{bw.relriskHeatppp}:
Bandwidth selection for \texttt{relriskHeat.ppp}
\item \texttt{SmoothHeat}, \texttt{SmoothHeat.ppp}:
Smoothing numerical values observed at points, using diffusion.
\item \texttt{blurHeat}, \texttt{blurHeat.im}:
Image smoothing using diffusion.
\item \texttt{bw.taylor}: Bandwidth selection for kernel density estimation
using Taylor's non-random bootstrap
\item \texttt{latest.changes}:
Lists the history of all changes that have been made to
a particular function in the \texttt{spatstat} family of packages.
\item \texttt{persp.ppp}: For a spatial point pattern with numeric marks,
generate a perspective plot in which each data point is
shown as a vertical spike, with height proportional to the mark value.
\item \texttt{knots.ewcdf}:
Method for generic \texttt{knots} for extracting the jump points of a weighted
cumulative distribution function.
\item \texttt{firstdigit}, \texttt{lastdigit}, \texttt{ndigits}:
digits in the decimal representation of a number.
\item \texttt{bw.abram.default}: Abramson adaptive bandwidths.
Default method for \texttt{bw.abram}, applicable to numerical vectors.
\item \texttt{default.symbolmap.ppp}:
Algorithm for determining the graphical symbol map used by \texttt{plot.ppp}.
\item \texttt{summary.symbolmap}:
Method for \texttt{summary} for symbol maps.
\item \texttt{SpatialMedian.ppp}, \texttt{SpatialQuantile.ppp}:
spatially weighted median and quantile of mark values of a point pattern.
\item \texttt{boyce}: Boyce index and continuous Boyce index.
\item \texttt{densityAdaptiveKernel.splitppp}:
A method for \texttt{densityAdaptiveKernel} for split point patterns.
\item \texttt{integral.fv}:
Compute the integral of a function object.
\item \texttt{compileCDF}:
Low level utility for calculating cumulative distribution function
of distance variable.
\item \texttt{Math.fv}, \texttt{Complex.fv}, \texttt{Summary.fv}, \texttt{Ops.fv}:
Methods for arithmetic operations for function tables (class \texttt{"fv"})
\item \texttt{Math.fasp}, \texttt{Complex.fasp}, \texttt{Summary.fasp}, \texttt{Ops.fasp}:
Methods for arithmetic operations for function arrays (class \texttt{"fasp"})
\item \texttt{Gcross.inhom}, \texttt{Gdot.inhom}:
Multitype $G$ functions for inhomogeneous point processes.
\item
\texttt{Jcross.inhom}, \texttt{Jdot.inhom}, \texttt{Jmulti.inhom}:
Multitype $J$ functions for inhomogeneous point processes.
\item
\texttt{summary.bw.optim}, \texttt{print.summary.bw.optim}:
Method for \texttt{summary} of optimised bandwidth objects
(class \texttt{bw.optim}).
These are the objects produced by the bandwidth selection functions
such as \texttt{bw.diggle}, \texttt{bw.scott}, \texttt{bw.pcf}
\item \texttt{psp2mask}:
Function \texttt{as.mask.psp} has been renamed \texttt{psp2mask}.
The old function \texttt{as.mask.psp} still exists but will soon be
deprecated and later removed.
\item \texttt{update.dppm}:
Update method for determinantal point process models.
\item \texttt{update.rppm}:
Update method for recursively partitioned point process models.
\item \verb![[.hyperframe!, \verb![[<-.hyperframe!:
Methods for \verb![[! and \verb![[<-! for hyperframes.
\item \texttt{pHcolourmap}, \texttt{pHcolour}:
Colour map for values of pH
\item \texttt{restrict.colourmap}:
Restrict a colourmap to a narrower range of values.
\item \texttt{integral.density}:
Compute the integral of a one-dimensional kernel density estimate.