add code for ratio plots