Description Usage Arguments Value

View source: R/regression_plots.R

Tools for visualizing gene signals for one given gene with the gam framework.

1 2 3 |

`data` |
a |

`gene` |
character, a gene of interest. |

`reg.f` |
a function to perform regression, either "ns" for natural splines, "loess" or "s" (default is "loess"). |

`span` |
numeric, a smoothing parameter for the regression function (default is 0.75, see |

`s.df` |
numeric, a smoothing parameter for the nsplines regregression (default is 4, see |

`regression` |
logical, if the loess regression is to be computed and plotted or not (default is TRUE). |

`null.model` |
logical, if the null model is to be computed and plotted or not (default is TRUE). |

`npred` |
logical, if the unshared part of the data is to be plotted or not(default is FALSE). |

`legend.show` |
logical, if the legend is wanted (default is FALSE). |

returns

`pl`

,the visualization of the data`regs`

, the regression objects for both lineages and the null model.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.