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)

