for example vs to illustrate

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. 

to illustrate

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