ldplot                package:hapsim                R Documentation

_L_D _p_l_o_t

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

     Creates a linkage disequilibrium plot from a matrix of pair-wise
     LD coefficients

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

     ldplot(ld.mat, ld.type, color = heat.colors(50), title = NULL)

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

  ld.mat: A square matrix of LD coefficients

 ld.type: A character value specifying what coefficients are used as
          input: either 'r' for correlation coefficients or 'd' for
          D/Dprime scores

   color: A range of colors to be used for drawing. Default is
          'heat.colors'

   title: Character string for the title of the plot

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

     Giovanni Montana

_R_e_f_e_r_e_n_c_e_s:

     Montana, G. HapSim: a simulation tool for generating haplotype
     data with pre-specified allele frequencies and LD coefficients.
     2005.

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

     data(ACEdata)

     # LD plot of ACEdata using r^2 coefficients
     ldplot(cor(ACEdata), ld.type='r') 

