Skip to content

Commit

Permalink
Merge pull request drieslab#29 from drieslab/main
Browse files Browse the repository at this point in the history
catch up to main
  • Loading branch information
jiajic authored Nov 15, 2023
2 parents bc7517c + a3301b3 commit 94546e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/gg_info_layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ plot_spat_image_layer_ggplot = function(gg_obj,
if(dim(img_array)[3] == 1) {
img_array_RGB = array(NA, dim = c(dim(img_array)[1:2],3))
img_array_RGB[,,1:3] = img_array
img_array_RGB[is.na(img_array_RGB)] = 0
} else {
img_array_RGB = img_array
}
Expand Down Expand Up @@ -1320,6 +1321,7 @@ plot_spat_image_layer_ggplot = function(gg_obj,
if(dim(img_array)[3] == 1) {
img_array_RGB = array(NA, dim = c(dim(img_array)[1:2],3))
img_array_RGB[,,1:3] = img_array
img_array_RGB[is.na(img_array_RGB)] = 0
} else {
img_array_RGB = img_array
}
Expand Down

0 comments on commit 94546e5

Please sign in to comment.