[R] margin between plot region and axes

Albert Greinoecker albert.greinoecker at uibk.ac.at
Mon Dec 17 21:10:08 CET 2007


Hi useRs,

in the following graphic...
http://www.survey4all.org/tmp/with_margin.png
I drawed a function and added two axes afterwards with "axis". I could
not find a way to erase the margin between the axes and the plotting
region, so I solved the problem with "text" and "segments", which looks
like this: 
http://www.survey4all.org/tmp/no_margin.png

My question: is there a way to add axes the usual way (as tried for the
first graphic), but to erase the margin, so that the axes start at point
(0/0) in my case.

thanks in advance for any help,
Albert



More information about the R-help mailing list