Displaying 2 results from an estimated 2 matches for "dna_segs".
2012 Oct 21
1
Navigating a grid.
...Could I get someone to critique my code and help me figure out how to
make multiple plots in columns and rows?
Thanks
Mike
plotpush <- function(x,n,letter,row,column) {
pushViewport
(viewport
(layout.pos.row=row,layout.pos.col=column,name=as.character(n)))
plot_gene_map
(dna_segs=list(x[["seg"]]),annotations=x[["annot"]],dna_seg_scale=T,
scale_cex
=
1.4
,dna_seg_line
=F,plot_new=FALSE,scale=F,arrow_head_length=1,annotation_cex=1.4,
main=toupper(letters[n]),main_pos="left"
)
popViewport(0)
}...
2012 Oct 22
0
Help with a R script using grid
...: In while (!rootVP(pvp)) { ... :
the condition has length > 1 and only the first element will be used
plotpush <- function(x,n,letter,row,column,layout) {
pushViewport
(viewport
(layout
=gl,layout.pos.row=row,layout.pos.col=column,name=as.character(n)))
plot_gene_map
(dna_segs=list(x[["seg"]]),annotations=x[["annot"]],dna_seg_scale=T,
scale_cex
=
1.4
,dna_seg_line
=F,plot_new=FALSE,scale=F,arrow_head_length=1,annotation_cex=1.4,
main=toupper(letters[n]),main_pos="left"
)
}
gl <- grid.layou...