search for: gscoredist

Displaying 1 result from an estimated 1 matches for "gscoredist".

2010 Jul 26
2
Trouble using grid.layout in Sweave
...ly by the use of grid.layout. Here is the code: <<fig=TRUE,label=evolDist,height=6in,width=3in,pdf=FALSE>>= ## combined plot via grid viewports grid.newpage() pushViewport(viewport(layout=grid.layout(2,1))) vlay <- function(x,y) viewport(layout.pos.row=x, layout.pos.col=y) print(pl$gscoreDist, vp=vlay(1,1)) print(pl$acceptDist, vp=vlay(2,1)) dev.off() @ The error is the following from Sweave: Error in grid.newpage() : Non-finite location and/or size for viewport In addition: There were 24 warnings (use warnings() to see them) Error in driver$runcode(drobj, chunk, chunkopts) : Error...