DisplayPars-class        package:GenomeGraphs        R Documentation

_C_l_a_s_s "_D_i_s_p_l_a_y_P_a_r_s" _i_s _u_s_e_d _t_o _s_p_e_c_i_f_y _g_r_a_p_h_i_c_a_l _p_a_r_a_m_e_t_e_r_s _t_o
_g_d_O_b_j_e_c_t_s.

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

     The DisplayPars functions analagously to par and gp. Generally the
     class is instantiated using the 'DisplayPars' function rather than
     directly.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'DisplayPars(...)'
     rather than calls to: 'new("DisplayPars", ...)' by calling the
     'DisplayPars' function directly in the constructor the gdObjects
     are guaranteed to have the appropriate defaults.

_S_l_o_t_s:


     '_p_a_r_s': Object of class '"environment"' Generally this slot is not
          accessed directly.


_M_e_t_h_o_d_s:


     _g_e_t_P_a_r 'signature(obj = "DisplayPars")': gets a graphical
          parameter by name

     _i_n_i_t_i_a_l_i_z_e 'signature(.Object = "DisplayPars")': This constructor
          should not be called directly.

     _s_e_t_P_a_r 'signature(obj = "DisplayPars")': sets a graphical
          parameter - see the example below. Often it is easier to set
          the graphical parameter from within the gdObject.

     _s_h_o_w 'signature(object = "DisplayPars")': prints current graphical
          parameters

_W_a_r_n_i_n_g:

     The 'DisplayPars' class should not be manipulated directly. The
     preferred method for interacting with the class can be seen in the
     example below.

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

     James Bullard

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

     showClass("DisplayPars")

     if (interactive()) {
     minbase = 10000
     maxbase = 15000
     mart <- useMart("ensembl", dataset = "scerevisiae_gene_ensembl")
     genesplus <- new("GeneRegion", start = minbase, end = maxbase, biomart = mart,
                     strand = "+", chromosome = "I", dp = DisplayPars(size = 2))
     ## plot it. 
     gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)

     ## to obtain a list of the current graphical parameters:
     print(genesplus@dp)

     ## to set a parameter:
     setPar(genesplus, "protein_coding", "pink")
     gdPlot(list(genesplus, new("Title", title = "genes")), minbase, maxbase)
     }

