Skip to content

Commit

Permalink
fix invisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Aug 26, 2024
1 parent 21579db commit 41f86fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: ximage
Title: Draw Images of Raster Data and Related Adornments
Version: 0.0.0.9012
Version: 0.0.0.9013
Authors@R:
c(person("Michael D.", "Sumner", , "[email protected]", role = c("aut", "cre")),
person("Chrsi", "Toney", role = "ctb"))
person("Chris", "Toney", role = "ctb"))
Description: Draw images easily and as if doing that was considered desirable or
even essential to be able to do. Set up
a plot with an image, specify where that image should be placed. Image plot by default
Expand All @@ -18,6 +18,6 @@ Roxygen: list(markdown = TRUE)
Depends:
R (>= 2.10)
LazyData: true
RoxygenNote: 7.3.0
RoxygenNote: 7.3.2
Imports:
palr
3 changes: 2 additions & 1 deletion R/ximage.R
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ ximage.default <- function(x, extent = NULL, zlim = NULL, add = FALSE, ..., xlab
}
if (!add) plot(extent[1:2], extent[3:4], type = "n", ..., xaxs = "i", yaxs = "i", xlab = xlab, ylab = ylab)

if (anyNA(x)) x[is.na(x)] <- 1
#if (anyNA(x)) x[is.na(x)] <- 1
#browser()
graphics::rasterImage(x, extent[1], extent[3], extent[2], extent[4], interpolate = FALSE)
invisible(list(x = x, extent = extent))
}
Expand Down
2 changes: 1 addition & 1 deletion man/ximage-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41f86fa

Please sign in to comment.