Skip to content

Commit 5619964

Browse files
committed
Extension to graphicsPars
1 parent 75f299a commit 5619964

File tree

5 files changed

+38
-18
lines changed

5 files changed

+38
-18
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: spatstat.utils
2-
Version: 3.1-1
3-
Date: 2024-11-02
2+
Version: 3.1-1.001
3+
Date: 2024-12-02
44
Title: Utility Functions for 'spatstat'
55
Authors@R: c(person("Adrian", "Baddeley",
66
role = c("aut", "cre"),

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
CHANGES IN spatstat.utils VERSION 3.1-1.001
3+
4+
OVERVIEW
5+
6+
o Internal improvements.
7+
8+
29
CHANGES IN spatstat.utils VERSION 3.1-1
310

411
OVERVIEW

R/resolve.defaults.R

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#
22
# resolve.defaults.R
33
#
4-
# $Revision: 1.41 $ $Date: 2024/10/28 05:40:08 $
4+
# $Revision: 1.44 $ $Date: 2024/12/02 04:15:06 $
55
#
66
# Resolve conflicts between several sets of defaults
77
# Usage:
88
# resolve.defaults(list1, list2, list3, .......)
99
# where the earlier lists have priority
1010
#
11+
# Also
12+
# graphicsPars(functionname)
13+
# gives names of arguments recognised by 'functionname'
14+
# which may not be formal arguments.
1115

1216
resolve.defaults <- function(..., .MatchNull=TRUE, .StripNull=FALSE) {
1317
## Each argument is a list. Append them.
@@ -115,15 +119,20 @@ passthrough <- function(.Fun, ..., .Fname=NULL) {
115119

116120
graphicsPars <- local({
117121
## recognised additional arguments to image.default(), axis() etc
122+
AxisArgs <- c("cex", "font",
123+
"cex.axis", "cex.lab",
124+
"col.axis", "col.lab",
125+
"font.axis", "font.lab",
126+
"mgp", "xaxp", "yaxp", "tck", "tcl", "las", "fg", "xpd")
118127
PlotArgs <- c(
119128
"main", "asp", "sub", "axes", "ann",
120-
"cex", "font",
121-
"cex.axis", "cex.lab", "cex.main", "cex.sub",
122-
"col.axis", "col.lab", "col.main", "col.sub",
123-
"font.axis", "font.lab", "font.main", "font.sub")
124-
129+
AxisArgs,
130+
"cex.main", "cex.sub",
131+
"col.main", "col.sub",
132+
"font.main", "font.sub")
125133
TextDefArgs <- setdiff(names(formals(text.default)), "...")
126134
TextArgs <- c(TextDefArgs, "srt", "family", "xpd")
135+
TitleArgs <- c("line", "outer", "adj")
127136

128137
TheTable <-
129138
list(plot = PlotArgs,
@@ -135,7 +144,7 @@ graphicsPars <- local({
135144
"cex.axis", "cex.lab", "cex.main", "cex.sub",
136145
"col.axis", "col.lab", "col.main", "col.sub",
137146
"font.axis", "font.lab", "font.main", "font.sub",
138-
"claim.title.space"),
147+
"claim.title.space", "adj.main"),
139148
axis = c(
140149
"cex",
141150
"cex.axis", "cex.lab",
@@ -151,19 +160,21 @@ graphicsPars <- local({
151160
"col.main", "col.sub",
152161
"font.main", "font.sub",
153162
"xaxs", "yaxs",
154-
"claim.title.space"),
163+
"claim.title.space", "adj.main"),
155164
lines = c("lwd", "lty", "col", "lend", "ljoin", "lmitre"),
156165
symbols = c(PlotArgs, "fg", "bg"),
157166
points = c("pch", "col", "bg", "fg", "cex", "lwd", "lty"),
158167
text = TextArgs,
159-
persp = c("x", "y", "z",
160-
"xlim", "ylim", "zlim",
161-
"xlab", "ylab", "zlab",
162-
"main", "sub",
163-
"theta", "phi", "r", "d", "scale",
164-
"expand", "col", "border",
165-
"ltheta", "lphi", "shade", "box",
166-
"axes", "nticks", "ticktype")
168+
title = union(TitleArgs, AxisArgs),
169+
persp = union(TitleArgs,
170+
c("x", "y", "z",
171+
"xlim", "ylim", "zlim",
172+
"xlab", "ylab", "zlab",
173+
"main", "sub",
174+
"theta", "phi", "r", "d", "scale",
175+
"expand", "col", "border",
176+
"ltheta", "lphi", "shade", "box",
177+
"axes", "nticks", "ticktype"))
167178
)
168179

169180
TheTable$ppp <- unique(c(TheTable$owin,

inst/doc/packagesizes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
2727
"2024-06-17" "3.0-5" 41 189 0 3688 2031
2828
"2024-08-17" "3.1-0" 41 189 0 3613 2429
2929
"2024-11-02" "3.1-1" 41 189 0 3614 2429
30+
"2024-12-02" "3.1-1.001" 41 189 0 3625 2429

inst/info/packagesizes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
2727
"2024-06-17" "3.0-5" 41 189 0 3688 2031
2828
"2024-08-17" "3.1-0" 41 189 0 3613 2429
2929
"2024-11-02" "3.1-1" 41 189 0 3614 2429
30+
"2024-12-02" "3.1-1.001" 41 189 0 3625 2429

0 commit comments

Comments
 (0)