Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/plotFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ NULL
list(
do.call(geom_sf, c(list(data=df, mapping=aes), c(dot))),
theme(legend.key.size=unit(0.5, "lines")),
coord_sf(expand=FALSE, reverse="y"))
coord_sf(expand=FALSE))
}
#' @export
#' @rdname plotFrame
Expand Down
6 changes: 6 additions & 0 deletions R/plotImage.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ NULL
a <- .get_multiscale_data(x, k)
a <- a[.ch_idx(x, ch),,,drop=FALSE]
a <- .norm_ia(a, data_type(x))
# We later use `annotation_raster()`, which plots the array the same way it is printed,
# i.e., with the row 1 at the top, which doesn't match the rest of the ecosystem,
# so we mirror the image horizontally.
# FIXME: at some point, we would like to use `SpatialData::mirror()` directly in the
# `plotImage()` for this but it's currently not lazy and super slow.
a <- a[, rev(seq_len(dim(a)[2])), , drop=FALSE]
a <- .prep_ia(a, c, cl)
}

Expand Down
Loading