naive polygon viewer

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

Arguments

x

instance of XenSPEP

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()

Value

run for side effect of plotting

Note

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

Examples

luad = cache_xen_luad()
pa = cache_xen_luad()
luad = restoreZipXenSPEP(pa)
#> Warning: transcripts.parquet etc. will be overwritten
rownames(luad) = make.names(SummarizedExperiment:::rowData(luad)$Symbol, unique=TRUE)
out = view_seg(luad, c(5800, 6300), c(1300, 1800), lwd=.5)

out$ncells
#> [1] 2074