groupedHeatmap          package:geneplotter          R Documentation

_H_e_a_t_m_a_p _o_f _a _m_a_t_r_i_x _w_i_t_h _g_r_o_u_p_e_d _r_o_w_s _a_n_d _c_o_l_u_m_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     The function uses 'grid.rect' and 'grid.rect' to draw a heatmap
     with grouped rows and columns.

_U_s_a_g_e:

     groupedHeatmap(z, frow, fcol,
       fillcolours = c("#2166ac","#4393c3","#92c5de","#d1e5f0","#fefefe","#fddbc7","#f4a582","#d6604d","#b2182b"),
       bordercolour = "#e0e0e0",
       zlim = range(z, na.rm=TRUE))

_A_r_g_u_m_e_n_t_s:

       z: A matrix with row and column names.

    frow: A 'factor' of length 'nrow(z)' indicating the row grouping.

    fcol: A 'factor' of length 'ncol(z)' indicating the column
          grouping.

fillcolours: A 'character' vector of colours from which the colour map
          is obtained through interpolation.

bordercolour: Either a 'character' vector of length 1, specifying the
          border colour of the heatmap tiles, or 'NULL' or 'NA', which
          indicates that the border colour should match the fill
          colour.

    zlim: Lower and upper limit of 'z' values represented in the colour
          map.

_D_e_t_a_i_l_s:

     The function can be called within other drawing operations from
     the grid package, e.g. within a viewport.

_V_a_l_u_e:

     The function is called for its side effect, drawing text and
     rectangles on the current viewport.

_A_u_t_h_o_r(_s):

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

_S_e_e _A_l_s_o:

     'grid.text', 'grid.rect'

_E_x_a_m_p_l_e_s:

     data("mtcars")

     groupedHeatmap(
       scale(mtcars),
       frow = factor(sapply(strsplit(rownames(mtcars), " "), "[", 1)),
       fcol = factor(round(seq_len(ncol(mtcars))/3)))

