The diagrams show what happens when P waves and S waves pass through the Earth. S waves do not pass through the Earth's core S waves cannot pass through the liquid outer core, but P waves can.
There are two different rates that can be determined on an ECG. The atrial rate is indicated by the frequency of the P waves. The ventricular rate is indicated by the frequency of the QRS complexes.