An example of an analogy between two branches of science,
"Gene-selectionists use the language of statistics, of variances, correlations and average effects, whereas developmental-systemists prefer 'causal' accounts. The contrast, within physics, between mechanics and thermodynamics provides a useful analogy. Thermodynamics is a statistical theory, not an exact causal theory. It makes predictions that are right on average. In principle, a thermodynamic account of any system could always be superseded by a complete mechanical account, but in many circumstances an exact causal account is not practical, nor even possible, nor would it add much to the thermodynamic explanation.
There is, in principle although not in practice, a complete account of all evolutionary change expressed in terms of proximate physical causes that makes no appeal to concepts of selection, information, average effects, and the like. But, I will settle for what is practical and predictive."
Haig, David (2012). The strategic gene. Biology & Philosophy, 27(4), 461-479. https://doi.org/10.1007/s10539-012-9315-5
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.