An analogy is a device that compares an idea or an object with another one which is quite different from the first one. Analogies intend to provide clarification on a concept by comparing it with another one that is more familiar. In this case, the relationship between apples and trees is being compared to that between grapes of vines. The analogy intends to convey the fact that grapes grow on vines just as apples grow on trees.