[R] ticks at the Y axis

Luís F respostas17 at gmail.com
Fri Nov 11 00:57:56 CET 2011

Dear Mailing list,

I am trying to produce a simple xy plot but overlapping at the y-axis
the y-values of each point.

The problem is that I don't know the x-coordinate corresponding to the
y-axis to plot the y-points. For each plot I have manually
"calculated" the x-coordinate but was wondering whether there is a way
to know the number.


cores <- rep(c('blue', 'green', 'brown'), 3)

xCoordinates <- 0.65 # value that I calculated by trial and error

plot(1:10 , 1:10, col=cores, xaxt='n', yaxt='n', xlab='', ylab='')
points(rep(xCoordinates, 10), 1:10, col=cores, pch=95, xpd=NA, cex=1)

thanks for this wonderful resource

Tiago Magalhães

More information about the R-help mailing list