earlier vs in advance

earlier

adv
  • previously; before now; sooner 

adj
  • occurring previously 

in advance

prep
  • beforehand 

How often have the words earlier and in advance occurred in a corpus of books? (source: Google Ngram Viewer )