Skip to content

How to change Image Extend/cropping #1067

Answered by jiajic
MustafaElshani asked this question in Q&A
Discussion options

You must be logged in to vote

You can currently only define the coordinate xy limits of the plot when using spatInSituPlotPoints()

Example:

g <- GiottoData::loadGiottoMini("vis")
g <- subsetGiottoLocs(g, x_min = 4000, x_max = 5000, y_min = -4000, y_max = -3000)
spatInSituPlotPoints(g, show_image = TRUE, image_name = "image")

spatInSituPlotPoints(g, show_image = T, image_name = "image", xlim = c(3000, 6000), ylim = c(-5000, -2000))

We are trying to bring easier FOV setting to more of the plotting functions.

The prefer arg you point out is not quite what you need. It is passed to ext() and is currently only used with giotto objects in order to better select the desired spatial extent when multiple types of spatial inf…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MustafaElshani
Comment options

You must be logged in to vote
2 replies
@jiajic
Comment options

@MustafaElshani
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants