Welcome to the directlabels package documentation website, where you can find illustrations of how to use direct labels in common statistical graphics. Furthermore, you can learn how to construct Positioning Methods by looking at the examples.
All the examples on this site should be directly executable in R after installing and loading the directlabels package. To get started, execute this R code:
## Install required dependencies:
install.packages(c("ggplot2","reshape2","mlmRev","lars","latticeExtra"))
## Install directlabels:
install.packages("directlabels")
## Load it:
library(directlabels)
| Examples | Positioning Methods | |
| contourplot | bottom.pieces
top.pieces |
|
| densityplot | bottom.points
top.bumptwice top.bumpup top.points |
|
| dotplot | angled.endpoints
top.qp |
|
| lineplot | angled.boxes
bottom.polygons first.bumpup first.points first.polygons first.qp lasso.labels last.bumpup last.points last.polygons last.qp left.points left.polygons lines2 maxvar.points maxvar.qp right.points right.polygons top.polygons |
|
| scatterplot | ahull.grid
chull.grid extreme.grid smart.grid |
| Please contact Toby Dylan Hocking if you are using directlabels or have ideas to contribute, thanks! |
| Documentation website generated from source code version 2021.2.24 (git revision edd0c5b Mon, 28 Jun 2021 10:54:29 +0530) using inlinedocs. |
| validate |