despite vs thanks to

despite

noun
  • Evil feeling; malice, spite, annoyance. 

prep
  • In spite of, notwithstanding. 

thanks to

prep
  • Because of; normally used with a positive connotation, though it can be used sarcastically. 

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