Tweaked XYplot and removed need to subset the data