imagesc                package:matlab                R Documentation

_M_A_T_L_A_B _i_m_a_g_e_s_c _f_u_n_c_t_i_o_n

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

     Scales image data to the full range of the current pallette and
     displays the image.

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

     imagesc(C, ...)

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

       C: numeric matrix representing data to be plotted

     ...: graphical parameters for image may also be passed as
          arguments to this method

_D_e_t_a_i_l_s:

     Each element of 'C' corresponds to a rectangular area in the
     image. The values of the elements of 'C' are indices into the
     current palette that determine the color of each patch.

     The method interprets the matrix data as a table of 'f(x[i],
     y[j])' values, so that the x axis corresponds to column number and
     the y axis to row number, with row 1 at the top, i.e., the same as
     the conventional printed layout of a matrix.

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

     P. Roebuck, roebuck@mdanderson.org

_S_e_e _A_l_s_o:

     'image', 'jet.colors', 'par'

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

     values <- matrix(c(seq(1,  5, by = 1),
                        seq(2, 10, by = 2),
                        seq(3, 15, by = 3)), nrow = 3, byrow = TRUE)
     imagesc(values, xlab = "cols", ylab = "rows", col = jet.colors(16))

