[R] Y-axis scale in Q-Qplot
Marc Schwartz
marc_schwartz at comcast.net
Thu Sep 27 21:10:41 CEST 2007
On Thu, 2007-09-27 at 18:19 +0100, S Bina wrote:
> Dear All,
>
> I have made a Q-Qplot (qqnorm) and want to change the scale of the y-axis from
> -4 to 25.
>
> How can I do that?
>
> Many thanks
> Samira
You can, but the real question is: should you?
qqnorm(x, ylim = c(-4, 25))
will give you what you want, but it will distort the graph aspect ratio
such that your 45 degree line (ie. qqline(x) ) is no longer at 45
degrees, which affects visualization.
R graphics generally have "sensible" defaults for sensible reasons.
For more information, do a Google search using the phrase:
"banking to 45 degrees"
HTH,
Marc Schwartz
More information about the R-help
mailing list