Displaying 2 results from an estimated 2 matches for "relativewidth".
2007 Jun 28
1
Changing graphics height when using grid and lattice
...# RR data
testData2 <- data.frame(
	strata = rep(c("CHF : Yes", "CHF : No"), each = 10),
	ae = paste("Adverse Event", 1:10),
	rr = runif(20, 0.5, 5)
)
testData2$lower = testData2$rr / 2
testData2$upper = testData2$rr * 2
	
# Combined plot
testPlots <- function(relativeWidth)
{
plot1<- dotplot(
	ae ~ pct | strata, 
	groups = trt, 
	data = testData,  
	layout = c(1, 2),
	xlab = "Percent",
	auto.key = list(space = "top", columns = 2)
)
plot2 <- Dotplot(
	ae ~ Cbind(rr, log10(lower), log10(upper)) | strata,
	data = testData2,
	panel = function...
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
Full_Name: Jonathan Paisley
Version: 2.1.1
OS: Mac OS X 10.4.2
Submission from: (NULL) (81.178.107.67)
I was following an example from library/grid/doc/grid.pdf ("Introduction to
grid") and had the following code, where I'd mis-typed 1,3 instead of 1,2 as the
first arguments to grid.layout.
Sourcing this code causes the R GUI to crash. I've enclosed a partial backtrace
from