
Last chance! 50% off unlimited learning
Sale ends in
Finds the coordinates in user parameters of a specified corner of the figure region and optionally displays a label there
corner.label(label=NULL,x=-1,y=1,xoff=NA,yoff=NA,figcorner=FALSE,...)
A list of the x and y positions of the corner adjusted for the offsets.
Text to display. The default is to display nothing.
an integer value: -1 for the left side of the plot, 1 for the right side
an integer value: -1 for the bottom side of the plot, 1 for the top side
Horizontal and vertical text offsets. Defaults to one half of the width and height of "m" respectively.
Whether to find/display at the corner of the plot or figure.
further arguments to the text command for the label
Ben Bolker
corner.label finds the specified corner of the plot or figure and if label is not NULL, displays it there. The text justification is specified so that the label will be justified away from the corner. To get the label squeezed right into a corner, set xoff and yoff to zero.
plot(1:10,1:10)
corner.label("A")
corner.label(x=1,y=1)
corner.label("B",y=-1,x=1,figcorner=TRUE,col="red")
Run the code above in your browser using DataLab