search for: u5cmr

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

Did you mean: cmr
2009 Jan 13
1
Drawing Polygons with xyplot in lattice
...e plot at a time with the simple plot commmand (using polygon after having first drawn the line plot), but am having difficulty replicating it with xyplot. Here is some sample code (with 4 countries and 10 years), which is as far as I've been able to get: library(lattice) df<-data.frame(c(u5cmr=round(runif(40)*100)),country=c(rep("Angola",10), rep("Benin",10), rep("Botswana",10), rep("Burkina Faso",10)), year=rep(1991:2000,4)) names(df)<-c("u5cmr", "country", "year") xyplot(u5cmr ~ year | country , ylab = "U5 cm...