Skip to content

Commit

Permalink
Bug fix in plot.symbolmap
Browse files Browse the repository at this point in the history
  • Loading branch information
baddstats committed Jul 1, 2024
1 parent 061ca98 commit 0cc22fd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: spatstat.geom
Version: 3.2-9.028
Date: 2024-06-28
Version: 3.2-9.029
Date: 2024-07-01
Title: Geometrical Functionality of the 'spatstat' Family
Authors@R: c(person("Adrian", "Baddeley",
role = c("aut", "cre", "cph"),
Expand Down
6 changes: 5 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CHANGES IN spatstat.geom VERSION 3.2-9.028
CHANGES IN spatstat.geom VERSION 3.2-9.029

OVERVIEW

Expand Down Expand Up @@ -116,6 +116,10 @@ BUG FIXES
o plot.ppp, default.symbolmap.ppp
Ignored 'zerosize' in some cases.
Fixed.

o plot.symbolmap
Issued strange warnings in some cases.
Fixed.

o symbolmap
Crashed in some instances when 'inputs' was given
Expand Down
11 changes: 8 additions & 3 deletions R/symbolmap.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##
## symbolmap.R
##
## $Revision: 1.56 $ $Date: 2024/05/01 05:11:57 $
## $Revision: 1.57 $ $Date: 2024/07/01 04:12:07 $
##

symbolmap <- local({
Expand Down Expand Up @@ -665,6 +665,11 @@ plot.symbolmap <- function(x, ..., main,
angleref=if(vertical) 90 else 0)

## ................. draw annotation ..................
dotargs <- list(...)
if(length(dotargs$col) > 1) {
## colourmap or multiple colour values - remove
dotargs$col <- NULL
}
if(annotate && length(ll) > 0) {
if(vertical) {
## default axis position is to the right
Expand All @@ -676,7 +681,7 @@ plot.symbolmap <- function(x, ..., main,
pos <- c(ylim[1], xlim[1], ylim[2], xlim[2])[sidecode]
## draw axis
do.call.matched(graphics::axis,
resolve.defaults(list(...),
resolve.defaults(dotargs,
list(side=sidecode, pos=pos, at=yp,
labels=ll, tick=FALSE, las=1)),
extrargs=graphicsPars("axis"))
Expand All @@ -690,7 +695,7 @@ plot.symbolmap <- function(x, ..., main,
pos <- c(ylim[1], xlim[1], ylim[2], xlim[2])[sidecode]
## draw axis
do.call.matched(graphics::axis,
resolve.defaults(list(...),
resolve.defaults(dotargs,
list(side = sidecode, pos = pos,
at = xp, labels=ll, tick=FALSE)),
extrargs=graphicsPars("axis"))
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/packagesizes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
"2023-10-20" "3.2-7" 451 1203 0 35983 15822
"2024-01-26" "3.2-8" 452 1204 0 36234 15822
"2024-02-28" "3.2-9" 452 1209 0 36325 15824
"2024-06-28" "3.2-9.028" 442 1186 0 35631 15596
"2024-07-01" "3.2-9.029" 442 1186 0 35636 15596
2 changes: 1 addition & 1 deletion inst/info/packagesizes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
"2023-10-20" "3.2-7" 451 1203 0 35983 15822
"2024-01-26" "3.2-8" 452 1204 0 36234 15822
"2024-02-28" "3.2-9" 452 1209 0 36325 15824
"2024-06-28" "3.2-9.028" 442 1186 0 35631 15596
"2024-07-01" "3.2-9.029" 442 1186 0 35636 15596

0 comments on commit 0cc22fd

Please sign in to comment.