An example of an extended metaphor and personification of nature in a scientist's writing,
"There are not only the manifolds of space and time in which things can be spread out. There is also the manifold of environments, in which things repeat themselves in always new forms. All these countless environments provide, in the third manifold, the clavier on which Nature plays her symphony of meaning beyond time and space.
In our lifetime, the task is given to us to form with our environment a key in the gigantic clavier over which an invisible hand glides, playing."
Uexküll, J. v. (2010). A Foray into the Worlds of Animals; with, A Theory of Meaning (Joseph D. O'Neil, Trans.). University of Minnesota Press.
Read about personification in science texts
Read about examples of personifying nature
Read about other examples of personification