powerplot                package:DAAG                R Documentation

_P_l_o_t _o_f _P_o_w_e_r _F_u_n_c_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function plots powers of a variable on the interval [0,10].

_U_s_a_g_e:

     powerplot(expr="x^2", xlab="x", ylab="y")

_A_r_g_u_m_e_n_t_s:

    expr: Functional form to be plotted

    xlab: x-axis label

    ylab: y-axis label

_V_a_l_u_e:

     A plot of the given expression on the interval [0,10].

_A_u_t_h_o_r(_s):

     J.H. Maindonald

_E_x_a_m_p_l_e_s:

        oldpar <- par(mfrow = c(2, 3), mar = par()$mar - c(
             1, 1, 1.0, 1),  mgp = c(1.5, 0.5, 0),  oma=c(0,1,0,1))
     #    on.exit(par(oldpar))
         powerplot(expr="sqrt(x)", xlab="")
         powerplot(expr="x^0.25", xlab="", ylab="")
         powerplot(expr="log(x)", xlab="", ylab="")
         powerplot(expr="x^2")
         powerplot(expr="x^4", ylab="")  
         powerplot(expr="exp(x)", ylab="")
     par(oldpar)

