An analogy is what type of language
An analogy is a comparison in which an idea or a thing is compared to another thing that is quite different from it.