Box-Plot for selected gene among different samples using ggplot2
Hi,
i have a " row counts" matrix characterized by 144 columns (samples) and 20437 rows (genes).
Samples are grouped in 5 different categories (W, E, R, Y, Z)
I would like to create a box-plot image using ggplot2 for one selected gene across different sample categories.
I need a detailed explanation step by step (R command script inluded) to perform this aim.
Please help me, i learned to use r three week ago
• 1,616 views
•
link
1 answer
I concur with everything Wouter has pointed out.
That being said, the DESeq2 manual may be a good starting point to get you on the right track. And, of course, the R cookbook for how to plot distributions with ggplot2 in general.
• 0 views
•
link
Log in to answer this question.
Well, nobody here is going to spend an hour of their time to write that detailed explanation if you didn't show any effort on solving this yourself. We can put you on the right track or correct your mistakes, but we are volunteers and have also other things to do.
Then this is an excellent learning opportunity, or maybe you should start with easier problems. You won't learn programming overnight or in a couple of weeks. It's going to take you much longer and you just have to get on with it. It will get easier, but not by just copy-pasting code we write for you.
You can have a try yourself, here is a excellent tutorial for plotting using ggplot2: https://r-graphics.org/preface.html. A plenty of examples present in the book. I suggest you save the link in your browser, and read it frequently, if you really want to learn R and fix your problem.