Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAY_ps1U6Ba=W1p-4Yn1HK9i1uL_+_RPS09Fc4fvattATyVrJw@mail.gmail.com>
Date: 2011-11-10T23:57:56Z
From: Luís F
Subject: ticks at the Y axis

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.

Example:

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