Question: Visualizing Linear Model Coefficients in R
gravatar for nathanguy14
9 months ago by
nathanguy140 wrote:

Hi All,

I'm analyzing an RNA-seq dataset using DESeq2, using a linear model that includes interaction terms.  Some of these interactions are a bit hard for me to visualize (especially the 3-way interactions).  I found this really great tutorial on linear models in R that includes some awesome visuals, for example:

But I don't know how to recapitulate such a graph for my data, and the code used to generate the above image was not provided.  Ideally, I would like to tell R to make this type of plot for any gene of interest in my data using the model that DESeq2 generates.  I'm a total newcomer to R, so any pointers in this direction would be greatly appreciated!  


ADD COMMENTlink modified 9 months ago by Michael Love16k • written 9 months ago by nathanguy140
gravatar for Michael Love
9 months ago by
Michael Love16k
United States
Michael Love16k wrote:

Hi Nathan,

I made that tutorial as well :) [by the way the code for every genomics class lecture can be found by clicking on the Rmd link from the main 'book' page. It will take you to the 'labs' repo.]

It would help if you can provide your design and colData, so I can suggest how to plot the fitted model.

ADD COMMENTlink written 9 months ago by Michael Love16k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 214 users visited in the last hour