title: How to specify the order of plots in a group of lattice xyplots?
body: <p>My code produces 9 lovely scatter plots. However, they come out in an odd order (seemingly right to left, starting at the bottom of the list of columns to plot).</p>
  
  <p>Is there a way to specify the order they should be plotted in?</p>
  
  <p>My code follows.</p>
  
  <pre><code>Z &lt;- as.vector(as.matrix(sample_clean_data[, c("agri_dist", "allroads_dist", "DES_dist",
                                  "elevation", "river_dist", "pop_dens",
                                  "slope", "urban_dist", "LS_dist_to_edge")]))
  
  
  Y10 &lt;- rep(sample_clean_data$change, 9)
  
  MyNames &lt;- names(sample_clean_data[,c("agri_dist", "allroads_dist", "DES_dist",
                         "elevation", "river_dist", "pop_dens",
                         "slope", "urban_dist", "LS_dist_to_edge")])
  
  ID10 &lt;- rep(MyNames, each = length(sample_clean_data$change))
  library(lattice)
  
  
  ID11 &lt;- factor(ID10, labels = c("Distance to nearest agriculture",  
                              "Distance to nearest road", 
                              "Distance to Dar es Salaam", 
                              "Elevation (m)", 
                              #"Distance to nearest main road", 
                              "Distance to nearest major river", 
                              "Population density (indiv./km2)",
                              "Slope",
                              "Distance to nearest urban centre",
                              "Landsat - Distance to forest edge"
  ),
             levels = c("agri_dist", "allroads_dist", "DES_dist",
                        "elevation", "river_dist", "pop_dens",
                        "slope", "urban_dist", "LS_dist_to_edge"))    
  
   xyplot(Y10 ~ Z | ID11, col = 1,
     strip = function(bg='white',...) strip.default(bg='white',...),
     scales = list(alternating = F,
                   x = list(relation = "free"),
                   y = list(relation = "same")),
     xlab = "Covariates",
     par.strip.text = list(cex = 0.8),
     ylab = "Change",
     panel=function(x, y, subscripts,...){
       panel.grid(h =- 1, v = 2)
       panel.points(x, y, col = 1, pch = 16)
       })
  </code></pre>
  
  <p>I assumed they would come out in the order they went in, from the top of the list, and plotted from the top left corner.</p>