Skip to content
Prev 315714 / 398506 Next

"user units" in plotrix

On 01/21/2013 08:59 AM, Murat Tasan wrote:
Hi Murat,
"User units" are the units of the plot itself. If you have very large 
differences between the x and y units of a plot, functions like 
"draw.circle" will try to adjust for this when drawing the circle. 
Currently draw.circle uses the x units of the plot for the radius and 
adjusts the y units. So if you asked for a circle on a plot with the 
user units above - xlim=c(0,1),ylim=c(0,1000000) - with a radius of 0.5 
and centered at 0.5,500000, the circle would fill almost the whole plot. 
In contrast, if you reverse the ratio, you would have to ask for a 
radius of 50 just to see a dot in the middle of the plot.

I had a quick look for a definition of "user units" and found that "user 
coordinates" is used several times in the documentation for the "par" 
function. However, I could not find a definition other than the implicit 
one of the coordinates or units that the user specifies for a plot.

Jim