[R] plot: x and y chromosomes are missing

David Winsemius dwinsemius at comcast.net
Mon Sep 10 19:54:08 CEST 2012


On Sep 10, 2012, at 9:14 AM, Hermann Norpois wrote:

> Hello,
> 
> I have a list with gene names, fold changes (=expression level) and
> chromosomes.
> 
> Names   fold change  chromosome
> hz          1.5              2
> 
> 
> If I plot fold change versus chromosome (or vice versa):
> 
> plot (ch, fc)
> 

Your question is ambiguous. You have shown the layout with names that are not valid column names. 

You may want to use barplot() rather than plot(), since your x-values are discrete.


> I see only the chromosomes with numbers but not those with letter (x and
> y). What can I do?
> 
> A second question:
> How can I add a single line in that plot at a certain y-level.

If you do not want barplot() then look at dotplot().

-- 
David Winsemius, MD
Alameda, CA, USA




More information about the R-help mailing list