Question: annotate histograms
0
gravatar for Wendy Qiao
8.0 years ago by
Wendy Qiao360
Wendy Qiao360 wrote:
Hi all, I am plot the gene expression data using histograms. I want to mark the expression of certain level of certain genes on the figure as shown in sure here<http: nar.oxfordjournals.org="" content="" 39="" suppl_1="" d1011="" f1.expansi="" on.html="">. Does anybody know how to add the red markers under bars. Thank you in advance. Wendy [[alternative HTML version deleted]]
• 541 views
ADD COMMENTlink modified 8.0 years ago by Janet L Smith40 • written 8.0 years ago by Wendy Qiao360
Answer: annotate histograms
0
gravatar for Janet L Smith
8.0 years ago by
Janet L Smith40 wrote:
Set the y-axis on your histogram to start at a negative value, then use segments to draw the lines. hist (your_data, ylim=c(-10,100)) segments (15,-0, 15, -20, col="red") Janet Smith Research Scientist Department of Biology MIT Building 68-540D Cambridge, MA 02139 ________________________________________ From: bioconductor-bounces@r-project.org [bioconductor- bounces@r-project.org] On Behalf Of Wendy Qiao [wendy2.qiao@gmail.com] Sent: Tuesday, November 01, 2011 12:01 PM To: bioconductor at r-project.org Subject: [BioC] annotate histograms Hi all, I am plot the gene expression data using histograms. I want to mark the expression of certain level of certain genes on the figure as shown in sure here<http: nar.oxfordjournals.org="" content="" 39="" suppl_1="" d1011="" f1.expansi="" on.html="">. Does anybody know how to add the red markers under bars. Thank you in advance. Wendy [[alternative HTML version deleted]] _______________________________________________ Bioconductor mailing list Bioconductor at r-project.org https://stat.ethz.ch/mailman/listinfo/bioconductor Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENTlink written 8.0 years ago by Janet L Smith40
It's simpler to use the "rug" function.... On 11/1/2011 11:11 AM, Janet L Smith wrote: > Set the y-axis on your histogram to start at a negative value, then use segments to draw the lines. > > hist (your_data, ylim=c(-10,100)) > segments (15,-0, 15, -20, col="red") > > > Janet Smith > Research Scientist > Department of Biology > MIT > Building 68-540D > Cambridge, MA 02139 > ________________________________________ > From: bioconductor-bounces at r-project.org [bioconductor-bounces at r-project.org] On Behalf Of Wendy Qiao [wendy2.qiao at gmail.com] > Sent: Tuesday, November 01, 2011 12:01 PM > To: bioconductor at r-project.org > Subject: [BioC] annotate histograms > > Hi all, > > I am plot the gene expression data using histograms. I want to mark the > expression of certain level of certain genes on the figure as shown in sure > here<http: nar.oxfordjournals.org="" content="" 39="" suppl_1="" d1011="" f1.expan="" sion.html="">. > Does anybody know how to add the red markers under bars. > > Thank you in advance. > > Wendy > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD REPLYlink written 8.0 years ago by Kevin Coombes430
Please log in to add an answer.

Help
Access

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