[R] exchange of axis labels in qqnorm function

Rui Barradas ruipbarradas at sapo.pt
Fri Sep 27 22:56:08 CEST 2013


Hello,

That's documented behavior. From the help page for ?qqnorm:

datax: logical. Should data values be on the x-axis?

(Try it without renaming the axis and it makes more sense.)


Hope this helps,

Rui Barradas

Em 27-09-2013 15:38, Cleber N.Borges escreveu:
> Hello all,
>
> Are there a reason for this behaviour in qqnorm function?
> (the exchange of axis labels )
>
>  >
>  > x <- rnorm(1000)
>  > par( mfcol=c(1,2) )
>  > qqnorm(x, xlab='X Axis', ylab='Y  Axis', datax=FALSE ) #Default
>  > qqnorm(x, xlab='X Axis', ylab='Y  Axis', datax=TRUE )
>  >
>  >
> Thanks for any explanation.
>
> cleber
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list