zoom {ggbio} | R Documentation |
A set of simple navigation API apply to ggbio object, let you move along the genome and zoom in/out.
zoom(fac = 1/2) zoom_in(fac = 1/2) zoom_out(fac = 2) nextView(unit = c("view", "gene", "exon", "utr")) prevView(unit = c("view", "gene", "exon", "utr"))
fac |
numeric value to indicate zoom factor, multiple of current view width. If it's smaller than 1, then it's zoom-in operation; if it's bigger than 1, then it's zoom-out operation. |
unit |
only support 'view' unit now. |
zoom_in
and zoom_out
are just simple wrapper around
zoom
function.
For more convenient, gene features based jumpting we will support it in the future.
A special class of navigation.
Tengfei Yin