contrary to vs in the opposite direction

contrary to

prep
  • despite; in opposition to (an assumption, etc.); differently from 

in the opposite direction

How often have the words contrary to and in the opposite direction occurred in a corpus of books? (source: Google Ngram Viewer )