Re: [R] PLotting R graphics/symbols without user x-y scaling

2007-02-27 Thread Greg Snow
:[EMAIL PROTECTED] On Behalf Of Jonathan Lees > Sent: Monday, February 26, 2007 7:26 AM > To: r-help@stat.math.ethz.ch > Subject: [R] PLotting R graphics/symbols without user x-y scaling > > > Is it possible to add lines or other > user defined graphics > to a plot in R that does n

Re: [R] PLotting R graphics/symbols without user x-y scaling

2007-02-26 Thread Gabor Grothendieck
You can use par("usr") to get the min/max coords of the plot and then use that. For example, this will plot a red dot in the middle of the plot area regardless of the coordinates: plot(1:10) # sample plot usr <- par("usr") points(mean(usr[1:2]), mean(usr[3:4]), pch = 20, col = "red") # red dot

Re: [R] PLotting R graphics/symbols without user x-y scaling

2007-02-26 Thread Paul Murrell
Hi Jonathan Lees wrote: > Is it possible to add lines or other > user defined graphics > to a plot in R that does not depend on > the user scale for the plot? > > For example I have a plot > plot(x,y) > and I want to add some graphic that is > scaled in inches or cm but I do not want the > graph

[R] PLotting R graphics/symbols without user x-y scaling

2007-02-26 Thread Jonathan Lees
Is it possible to add lines or other user defined graphics to a plot in R that does not depend on the user scale for the plot? For example I have a plot plot(x,y) and I want to add some graphic that is scaled in inches or cm but I do not want the graphic to change when the x-y scales are changed