for example vs such as

for example

prep
  • introducing one or more parts of the group or topic just mentioned or typical of the options available 

prep
  • As an example. 

such as

prep
  • For example. 

  • Like, of the kind mentioned. 

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