Skip to content

Commit

Permalink
highlight hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-marsh committed Nov 13, 2023
1 parent 79c2bec commit 3faa0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -7895,7 +7895,7 @@ SetHighlight <- function(

# Check for raster
if (isTRUE(x = raster)) {
size <- size[1]
size <- sizes.highlight[1]
}

plot.order <- sort(x = unique(x = highlight), na.last = TRUE)
Expand Down Expand Up @@ -8200,7 +8200,7 @@ SingleDimPlot <- function(
raster <- raster %||% (nrow(x = data) > 1e5)
pt.size <- pt.size %||% AutoPointSize(data = data, raster = raster)

if (!is.null(x = cells.highlight) && pt.size == AutoPointSize(data = data, raster = raster) && sizes.highlight != pt.size && isTRUE(x = raster)) {
if (!is.null(x = cells.highlight) && pt.size != AutoPointSize(data = data, raster = raster) && sizes.highlight != pt.size && isTRUE(x = raster)) {
warning("When `raster = TRUE` highlighted and non-highlighted cells must be the same size. Plot will use the value provided to 'sizes.highlight'.")
}

Expand Down

0 comments on commit 3faa0e6

Please sign in to comment.