An example of analogy used in popular science writing:
"Just as there are different types of relationships, there are also different types of bonds with varying properties. There are strong and weak bonds, temporary and permanent ones, some that are reliant on attraction and others that depend on a union of differences."
Dr Camilla Pang
Camilla Pang (2020) Explaining Humans. What science can teach us about life, love and relationships. Viking
(All chemical bonds depend on a balance of attractive and repulsive forces.)
Read examples of scientific analogies
Many examples of science analogies are listed in 'Creative comparisons: Making science familiar through language. An illustrative catalogue of figurative comparisons and analogies for science concepts'. Free Download.