Hi Peng Yu,
> I see the above set the aspect ratio of a plot. But I need the scale of
> x and y be the same. That is, a unit in x should be of the same length
> as a unit in y. Is there a way to control this with ggplot2? Thanks.
From ?coord_fixed
"The default, ‘ratio = 1’, ensures that one unit on the x-axis is the
same length as one unit on the y-axis."
Isn't that what you're after?
Best wishes,
Ron.