add r code for daily lattice plots