[R] Question scatterplot axis cut point

Jim Lemon jim at bitwrit.com.au
Tue Feb 14 09:14:14 CET 2012


On 02/14/2012 06:19 AM, Michael Methlagl wrote:
> Hi everybody,
> i made a scatterplot using the command
> plot (datafile1, xlim=c(0,10), ylim=c(0.001, 1), log="y", xlab="x Achse", ylab="y Achse", frame.plot=FALSE, axes = TRUE).
> Now i  have a problem. There is a gap between the x and the y axis. I want that the x and y axis cut at 0 and 0.001 without having this gap.
> Is this possible?
> thanks for your help!
> nice greetings michi

Hi michi,
You are looking for:

par(xaxs="i",yaxs="i")
plot(...)

Jim



More information about the R-help mailing list