Here are some examples of metonymy in poems:
* "The pen is mightier than the sword" (Edward Bulwer-Lytton) - In this line, the "pen" represents writing and the "sword" represents military power.
* "I wandered lonely as a cloud" (William Wordsworth) - In this line, the "cloud" represents the poet's sense of isolation and loneliness.
* "The fog comes on little cat feet" (Carl Sandburg) - In this line, the "cat feet" represent the soft and silent way that the fog moves.
Metonymy can be used to create a variety of effects in poetry. It can be used to add vividness and imagery to a poem, to create a sense of atmosphere, or to suggest hidden meanings.