Displaying 2 results from an estimated 2 matches for "scen2".
Did you mean:
scene
2010 May 25
1
Lattice: relation = 'free' in scales
...ple) and using data from two
sources (scen 2 in my example). I want to specify the ylim of my plot and
have relation = 'free' for the yaxis but I would to avoid plotting the axis
for each subplot. I include an example to clarify my problem.
require(lattice)
nmethods <- 3
nscen1 <- 3
nscen2 <- 2
gens <- 1:10
tab <- expand.grid(method = 1:nmethods,
scen1 = 1:nscen1,
scen2 = 1:nscen2,
gen = gens,
rep = 1:3)
tab$value <- rnorm(nrow(tab),mean = with(tab,method*1000 + scen1*10 +
scen2*10 + gen*100),sd =...
2012 Sep 24
1
Adding textbox to multiple panels in lattice
...om EduDat
Years <- c(2010,2030,2050)
Countries <- c("Pakistan","Bangladesh","Indonesia")
Scenarios <- c("GET")
# the male-column needs to be flipped
iEduDat <- subset(EduDat,match(cc,getcode(Countries,dictionary)) &
match(yr,Years) & match(scen2,Scenarios))
iEduDat$value[iEduDat$sex == "Male"] <- (-1) * iEduDat$value[iEduDat$sex ==
"Male"]
agegrs <- paste(seq(15,100,5),seq(19,104,5),sep="-")
agegrs[length(agegrs)] <- "100+"
lattice.options(axis.padding = list(numeric=0))
x <- pyramidlat...