Displaying 2 results from an estimated 2 matches for "layout_mat".
2008 Jun 26
1
Layout() coordinates and drawing lines / segments
...three plots.
My output is defined as this:
----------------------------------------------------------------------------
postscript("out.ps", horizontal=FALSE,
+width=7.5,height=11.5,pointsize=10, paper = "special" )
opar <- par(omi=c(0.1,0.1,0.1,0.1))
layout_mat = matrix(c(1,2,3),nrow=3,ncol=1,byrow=TRUE)
my_layout <-
layout(layout_mat,widths=c(1,1,1),heights=c(1,1.5,1.5),respect=FALSE)
-----------------------------------------------------------------------------
2 Questions:
How do i find what are the x,y's of the upper margin ?
(I've he...
2008 Jul 11
1
TeachingDemos question: my.symbols() alignment problems in complicated layout
...blem...)
############################# TEST CODE #################################
postscript("test.ps", horizontal=FALSE, width=7.5,
height=11.5,pointsize=10, paper = "special" )
library(TeachingDemos)
opar <- par(omi=c(0,0.1,0.7,0.1),xpd=T,mar=par()$mar+c(0,-1.5,-1,5))
layout_mat = matrix(c(1,2,3,4),nrow=4,ncol=1,byrow=TRUE)
my_layout <-
layout(layout_mat,widths=c(1,1,1,1),heights=c(1.0,0.45,1.0,1.2),respect=FALSE)
plot(1,1)
plot(2,2)
plot(3,3)
plot(1:100,rep(c(9,1.5,2,8),25))
points(40,4,col="red")
points(50,8,col="red")
my.symbols(40,4,ms.polygon,...