The example of figurative language affecting the theme of a text is:
The use of a metaphor to compare life to a journey, emphasizing personal growth.
This metaphorical comparison can deepen the understanding of the theme by illustrating the idea of life as a process of exploration and development, which emphasizes personal growth.