qqnorm                 package:stats                 R Documentation

_Q_u_a_n_t_i_l_e-_Q_u_a_n_t_i_l_e _P_l_o_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     'qqnorm' is a generic function the default method of which
     produces a normal QQ plot of the values in 'y'. 'qqline' adds a
     line to a normal quantile-quantile plot which passes through the
     first and third quartiles.

     'qqplot' produces a QQ plot of two datasets.

     Graphical parameters may be given as arguments to 'qqnorm',
     'qqplot' and 'qqline'.

_U_s_a_g_e:

     qqnorm(y, ...)
     ## Default S3 method:
     qqnorm(y, ylim, main = "Normal Q-Q Plot",
            xlab = "Theoretical Quantiles", ylab = "Sample Quantiles",
            plot.it = TRUE, datax = FALSE, ...)

     qqline(y, datax = FALSE, ...)

     qqplot(x, y, plot.it = TRUE, xlab = deparse(substitute(x)),
            ylab = deparse(substitute(y)), ...)

_A_r_g_u_m_e_n_t_s:

       x: The first sample for 'qqplot'.

       y: The second or only data sample.

xlab, ylab, main: plot labels.  The 'xlab' and 'ylab' refer to the y
          and x axes respectively if 'datax = TRUE'.

 plot.it: logical. Should the result be plotted?

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

ylim, ...: graphical parameters.

_V_a_l_u_e:

     For 'qqnorm' and 'qqplot', a list with components 

       x: The x coordinates of the points that were/would be plotted

       y: The original 'y' vector, i.e., the corresponding y
          coordinates _including 'NA's_.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

     'ppoints', used by 'qqnorm' to generate approximations to expected
     order statistics for a normal distribution.

_E_x_a_m_p_l_e_s:

     y <- rt(200, df = 5)
     qqnorm(y); qqline(y, col = 2)
     qqplot(y, rt(300, df = 5))

     qqnorm(precip, ylab = "Precipitation [in/yr] for 70 US cities")

