Re: [R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread baptiste auguie
Hi, you want only the x scale to be free, xyplot(place~rank|type, data=df1, panel= function(x, y, ..., subscripts) { panel.xyplot(x,y,..., subscripts) require(grid) panel.grid(h = -1,v = 0, lty="dotted") grid.text(unit(x,"native"),

Re: [R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread taz9
I used the scales relation to obtain different x-scales for each panel. However, there's a gap between the 2 panels. Any ideas on how I could remove it? xyplot(place~rank|type, data=df1, scales=(relation="free"), panel= function(x, y, ..., subscripts) { panel.xyplot(x,y,..., subscrip

[R] xyplot with 2 panels and 2 different x-scales

2009-07-31 Thread taz9
Hi All, I have this data: type<-c("country","country","country","world","world","world") place<-c("A","B","C","A","B","C") rank<-c(1,3,5,512,420,320) df1<-data.frame(type,place,rank) and need to produce an xyplot with 2 panels, where the x-values are labelled: xyplot(place~rank|type, data=df1