Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/panelfunctions.R
Panel function for drawing labels into a trellis
graphic (lattice
package) with or without boxes around labels.
1  adeg.panel.label(x, y, labels, plabels, pos = NULL)

x 
a numeric vector, xcoordinates for the labels 
y 
a numeric vector, ycoordinates for the labels 
labels 
a vector of character string, the labels 
plabels 
a list of parameters as an extract of

pos 
a position specifier for the text, used in panel.text.
Values of 
Draws the labels.
For more information about the use of panel functions, please see the lattice
package developed by Deepayan Sarkar.
Alice JulienLaferriere, Aurelie Siberchicot [email protected] and Stephane Dray
The algorithm used for labels positions optimization is inspired by the pointLabel
function of the maptools
package developed by Tom Short.
pointLabel
1 2 3 4 5 6 7 8 9 10 11 12  if(require(lattice, quietly = TRUE)) {
param < adegpar("plabels")[[1]]
xyplot(1:10 ~ 1:10, panel = function(x, y, ...){
adeg.panel.label(x, y, LETTERS[1:10], plabels = param)})
}
if(require(lattice, quietly = TRUE)) {
param$boxes$draw < FALSE
param$col < "blue"
xyplot(1:10 ~ 1:10, panel = function(x, y, ...){
adeg.panel.label(x, y, LETTERS[1:10], plabels = param)})
}

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.