color according to column
Hello,
I have this data frame (y1) and I would like to plot with color according to column(meanhealthy) and (meancancer)
what I am doing here give me color to each element in the row,however I want all the point to be in group healthy vs cancer. Thanks for any answer
Associated.Gene.Name meanhealthy meancancer
SCYL3 7.0786 5.879
SCYL3 7.0786 5.879
SCYL3 7.0078 5.879
SCYL3 7.0786 5.879
plot(y1$meanhealthy,y1$meancancer,col=c("blue","red"),pch=19,cex=0.3,)
• 1,456 views
•
link
0 answers
No answers yet.
Log in to answer this question.
I have a feeling this is more of an R question than a bioinformatics question.
Why do you want to plot same gene 4 times?
well,it is just part of my dataframe and for the repeated genes it s according to repeat elements,sorry I didnt include all my dataframe
More suitable for StackOverflow.
Hello yasjas!
We believe that this post does not fit the main topic of this site.
Please move this post to http://stats.stackexchange.com/
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!