[R] refering to the 'boundaries' of a graph

Dean1 web13site at yahoo.co.uk
Mon Dec 28 14:55:48 CET 2009


Please see this code for a demonstration of my problem...

xlim <- c(-1,5)
plot(1:4, xlim=xlim)
abline(v=xlim[1])
abline(v=xlim[2])

When I refer to xlim, it is not referring to the boundaries of the graphical
region, it refers to the maximum and minimum xticks.  My question is how can
I refer to the x axis boundaries (and similarly y axis) of the graph?
-- 
View this message in context: http://n4.nabble.com/refering-to-the-boundaries-of-a-graph-tp989790p989790.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list