reviewed, exported and tested  plotEAF