Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] grid lines aligned on each ticks with a log scale

bbouling

2010-03-20

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

for publication purpose I must provide a graph with grid lines aligned with
each tick mark.
Thing is that the graph has a log scale on the x-axis.
I looked at the grid() and par() documentation but still don't figure out
how to get it done.


simple example

plot(seq(1,9), log="x", panel.first=grid())

how to get lines at x = 2 and 5 on the graph?
Of course the option "nx" in grid() is not valid, as it does not align the
grid lines with the ticks in a log scale...

Thanks for giving a hand.

Regards/Cordialement

-------------
Benoit Boulinguiez
Ph.D student
Ecole de Chimie de Rennes (ENSCR) Bureau 1.20
Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes"
Avenue du Général Leclerc
CS 50837
35708 Rennes CEDEX 7
Tel 33 (0)2 23 23 80 83
Fax 33 (0)2 23 23 81 20
<http://www.ensc-rennes.fr/> http://www.ensc-rennes.fr/



 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.