by walking vs on foot

by walking

on foot

prep
  • In progress or in preparation; active, in operation. 

  • On one's feet; walking, jogging or running but not in a vehicle or on the back of an animal. 

How often have the words by walking and on foot occurred in a corpus of books? (source: Google Ngram Viewer )