e.g. vs such as

e.g.

adv
  • "for example" or "for the sake of an example": used to introduce an illustrative example or short list of examples. 

noun
  • An example. 

such as

prep
  • Like, of the kind mentioned. 

  • For example. 

How often have the words e.g. and such as occurred in a corpus of books? (source: Google Ngram Viewer )