Thanks for the clarification.
Re putting points in different colors, you can do something like this:
ggplot(data=T3, aes(x=log2FoldChange, y=-log10(pval),
color=log2FoldChange < 1.5)) +...
To incorporate both the conditions you mentioned:
T3$clr <- paste(T3$log2FoldChange < 1.5, T3$pval < 0.05)
ggplot(data=T3, aes(x=log2FoldChange, y=-log10(pval), color=clr)) +...
This gives a total of four colors on the plot, since there are four
possible combinations.
Ben
On Thu, Feb 19, 2015 at 10:13 AM, Irshad Ul Haq <
irshad...@gmail.com> wrote:
> Hi Ben,
>
> Thank you for your response.
>
> 1) Using RStudio I import the file with (.csv) extension and click yes
> "heading". Then I write the script mentioned before and gets the plot, BUT
> with a warning (please see attached print screen).
>
> 2). By threshold I mean to color upregulated genes (log2 fold change >1.5)
> in red and downregulated (log2 fold change <1.5) in blue. Also, distinguish
> between genes with statistical significance (p< 0.05 and p>0.05 in different
> colors).
>
> Thank you very much!
> Irshad
> --
>
> Marie-Curie PhD fellow
> Department of Microbial Ecology
> Groningen Institute for Evolutionary Life Sciences (GELIFES)
> Faculty of Mathematics and Natural Science
> University of Groningen, Nijenborgh 7, 9747 AG, Groningen, The Netherlands
>
>
>
>