How can I extract plot axes' ranges for a ggplot2 object?

I have an object from ggplot2, say myPlot, how can I identify the ranges for the x and y axes? It doesn't seem to be a simple multiple of the data values' range, because one can rescale plots, mod...