inOutScatterCharts         package:ppiStats         R Documentation

_A _f_u_n_c_t_i_o_n _t_o _c_r_e_a_t_e _s_c_a_t_t_e_r _p_l_o_t_s _o_f _t_h_e _i_n-_d_e_g_r_e_e _a_n_d _o_u_t-_d_e_g_r_e_e
_f_o_r _e_a_c_h _v_e_r_t_e_x _o_f _a _d_i_r_e_c_t_e_d _g_r_a_p_h

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

     This function takes a list of directed graph objects and plots the
     out-degree against the in-degree for each vertex. A binomial test
     is used to determine    if there is a highly disproportionate
     in-degree or out-degree given a p-value  threshold (the binomial
     test presumes p = 0.5).

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

     inOutScatterCharts(dataGraphs, pThresh=0.01, pLevels=1e-4)

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

dataGraphs: A named list of directed graphNELs

 pThresh: The two-sided p-value threshold for the binomial testing for
          potentially biased nodes

 pLevels: Figure out what this does

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

     For each directed data graph, this function generates 3 pdf
     scatter-plots and 1 eps  scatter plot. The pdf files are: 1. A
     scatter plot of each nodes out- vs in-degree where points outside
     the staircase bundaries are those rejected in the binomial test.
     2. A scatter plot of each nodes out- vs in-degree scaled by sqrt
     where points outside  the conic region are those rejected in the
     binomial test.     3. A histogram for the distribution of p-values
     for each node

     The eps file contains the same information as the second pdf file.

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

     T Chiang

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

     graphs = lapply(bpExperimentNames, function(x) get(x))
     names(graphs) = bpExperimentNames
     #inOutScatterCharts(graphs)

