In the sentence "New factories used machines and electricity in place of horses," the object of the preposition in place of is horses.
An object of a preposition is the word which follows a preposition.
Prepositions refers to words which begin prepositional phrases.
A prepositional phrase consists of a group of words which contains a preposition, a noun or pronoun object of the preposition, and any modifiers of the object.