Displaying 5 results from an estimated 5 matches for "snpc".
Did you mean:
snp
2008 Aug 06
1
grid layout scaling viewport width based solely on height
...most welcome.
Hopefully, my explanation makes my goal clear. Also note, the real
application is a function that will have arbitrary numbers of side
plots.
Thanks
Peter
require(grid)
grid.newpage()
lout1 <- grid.layout(nrow = 1, ncol = 2,
widths = unit(c(1, 1/10), c('null', 'snpc'))
)
pushViewport(viewport(layout = lout1, w = 0.8, h = 0.8))
pushViewport(viewport(layout.pos.col = 1))
grid.rect()
popViewport()
pushViewport(viewport(layout.pos.col = 2))
lout2 <- grid.layout(nrow = 10, ncol = 1,
heights = unit(1, 'snpc'))...
2012 Sep 27
1
Problem with grid.rect
..., yscale=c(0,1)), just=c("center", "center"))
vp1 <- viewport(x=unit(0.5, "native"), y=unit(0.5, "native"),
width=unit(0.4, "native"), height=unit(0.4, "native"),
just=c("center", "center"))
grid.rect(x=unit(0, "snpc"), y=unit(0, "snpc"), width=unit(1, "snpc"),
height=unit(1, "snpc"), gp=gpar(col=rgb(0.9, 0, 0), fill=rgb(0.9, 0,
0), just=c("center", "center")), vp=vp1)
(I know I could do this in a simpler way, but let's suppose I want to go
through the...
2007 May 30
3
sizing and saving graphics in R
...ise marker association was displayed as approximately 1 pixel
(too small for me to interpret).
I have successfully managed to play with the LDheatmap function to
enlarge the size of viewport by changing the following code in
LDheatmap
#From
heatmapVP <- viewport(width = unit(0.8, "snpc"), height = unit(0.8, "snpc"),
name=vp.name)
#To
heatmapVP <- viewport(width = unit(25, "inches"), height = unit(25,
"inches"), name=vp.name)
This produces a much larger plot (so big that the majority is not seen
on the screen). I...
2009 Mar 21
1
Forestplot () box size question
...}
grid.lines(x = lims, y = 0.5, arrow = arrow(ends = ends,
length = unit(0.05, "inches")), gp = gpar(col = col$lines))
if (!clipbox)
grid.rect(x = unit(OR, "native"), width = unit(size,
"snpc"), height = unit(size, "snpc"), gp =
gpar(fill = col$box,
col = col$box))
}
else {
grid.lines(x = unit(c(LL, UL), "native"), y = 0.5,
gp = gpar(col = col$lines))
grid.rect(x = unit(OR, "na...
2007 Jun 28
1
Changing graphics height when using grid and lattice
Hi,
I have recently been playing with the grid package in an attempt to create
some pages containing multiple lattice plots on the same page. However, when
I specify a grid layout with different widths, such as:
pushViewport(viewport(layout = grid.layout(1, 2, unit(c(2, 1), "null"))))
the individual graphs do not end up as the same height - which is a feature
I would prefer to have.