naive polygon viewer

view_seg(x, xlim, ylim, show_tx = FALSE, ...)

Arguments

x

instance of XenSCE

xlim

numeric(2) ordered vector of max and min on x

ylim

numeric(2) ordered vector of max and min on y

show_tx

logical(1) display transcript locations if TRUE, defaults to FALSE.

...

passed to polygon()

Note

This is more RAM-sparing than clip_rect followed by view.

Examples

gbm = build_demo()
out = view_seg(gbm, c(5800, 6500), c(6300, 7000), lwd=.5, col="lightgray", show_tx=TRUE)
#> start filter tx
#> end filter tx

out$ncells
#> [1] 5120