[R] Equal vertical spaced labels on plot with log="y"

From: Daniel Brewer <daniel.brewer_at_icr.ac.uk>
Date: Thu, 20 Mar 2008 09:48:15 +0000


Hello,

I have a series of labels that I want to place on a plot with a log scale y axis. I want these labels to be equally spaced vertically as seen on the plot.

I have been trying this:

ylab <- 160 - log2(1:length(labels))

but that does not seem to work (where 160 is basically the top of the plot).

Any ideas?

Thanks

-- 

**************************************************************
Daniel Brewer, Ph.D. Institute of Cancer Research Molecular Carcinogenesis Email: daniel.brewer_at_icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the a...{{dropped:2}} ______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Thu 20 Mar 2008 - 09:51:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Mar 2008 - 12:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive