corner.loc {plotrix} | R Documentation |
Finds the coordinates in user parameters of a specified corner of the figure region and/or puts a label there
corner.loc(x=-1,y=1,xoff=0.05,yoff=0.05) corner.label(label=NULL,x=-1,y=1,xoff=0.05,yoff=0.05,...)
label |
text to plot in the appropriate corner |
x |
an integer value: -1 for the left side of the plot, 1 for the right side |
y |
an integer value: -1 for the bottom side of the plot, 1 for the top side |
xoff |
horizontal offset as a proportion of the total plot size |
yoff |
vertical offset as a proportion of the total plot size |
... |
further arguments to the text command for the label |
corner.loc returns a list of the x and y positions of the corner
Ben Bolker
plot(1:10,1:10) corner.label("A") corner.loc(1,1) corner.label("B",y=-1,x=1)