added s offset to lattice plot