Package: directlabels 2024.4.16

directlabels: Direct Labels for Multicolor Plots

An extensible framework for automatically placing direct labels onto multicolor 'lattice' or 'ggplot2' plots. Label positions are described using Positioning Methods which can be re-used across several different plots. There are heuristics for examining "trellis" and "ggplot" objects and inferring an appropriate Positioning Method.

Authors:Toby Dylan Hocking

directlabels_2024.4.16.tar.gz
directlabels_2024.4.16.zip(r-4.5)directlabels_2024.4.16.zip(r-4.4)directlabels_2024.4.16.zip(r-4.3)
directlabels_2024.4.16.tgz(r-4.4-any)directlabels_2024.4.16.tgz(r-4.3-any)
directlabels_2024.4.16.tar.gz(r-4.5-noble)directlabels_2024.4.16.tar.gz(r-4.4-noble)
directlabels_2024.4.16.tgz(r-4.4-emscripten)directlabels_2024.4.16.tgz(r-4.3-emscripten)
directlabels.pdf |directlabels.html
directlabels/json (API)
NEWS

# Install 'directlabels' in R:
install.packages('directlabels', repos = c('https://tdhock.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tdhock/directlabels/issues

Datasets:

On CRAN:

99 exports 81 stars 4.82 score 1 dependencies 17 dependents 2 mentions 1.8k scripts 5.9k downloads

Last updated 5 months agofrom:04cf3357a0. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 14 2024
R-4.5-winOKSep 14 2024
R-4.5-linuxOKSep 14 2024
R-4.4-winOKSep 14 2024
R-4.4-macOKSep 14 2024
R-4.3-winOKSep 14 2024
R-4.3-macOKSep 14 2024

Exports:ahull.gridahull.pointsangled.boxesangled.endpointsapply.methodbig.boxesbottom.piecesbottom.pointsbottom.polygonsbumpupcalc.borderscalc.boxescheck.for.columnschull.gridchull.pointsdefault.ahulldefault.pickerdefaultpf.ggplotdefaultpf.trellisdirect.labeldirect.label.ggplotdirect.label.trellisdl.combinedl.envdl.jitterdl.movedl.summarizedl.transdlcomparedldocdlgrobdraw.polygonsdraw.rectsdrawDetails.dlgrobedges.to.outsideempty.gridenlarge.boxextract.plotextract.posfunextreme.gridextreme.pointsfar.from.others.bordersfilltemplatefirst.pointsfirst.polygonsfirst.qpgapplygapply.fungeom_dlget.meansgetLegendVariablesignore.nain1boxin1whichinsidelabel.endpointslabel.pieceslasso.labelslast.pointslast.polygonslast.qplattice.translatorsleft.pointsleft.polygonslegends2hidelines2make.tiebreakermaxvar.pointsmaxvar.qpmerge_recursemidrangeonly.unique.valsoutside.ahulloutside.chullpanel.superpose.dlpkgFunpolygon.methodproject.onto.segmentsqp.labelsreduce.cexreduce.cex.lrreduce.cex.tbrhtmlescaperight.pointsright.polygonssmart.gridstatic.labelstop.bumptwicetop.bumpuptop.piecestop.pointstop.polygonstop.qpuselegend.ggplotuselegend.trellisvertical.qpvisualcenterxlimitsylimits

Dependencies:quadprog

examples

Rendered fromexamples.Rmdusingknitr::knitron Sep 14 2024.

Last update: 2023-08-25
Started: 2020-06-25

Readme and manuals

Help Manual

Help pageTopics
ahull gridahull.grid
ahull pointsahull.points
angled boxesangled.boxes
angled endpointsangled.endpoints
Apply a Positioning Methodapply.method
big boxesbig.boxes
bottom piecesbottom.pieces
bottom pointsbottom.points
bottom polygonsbottom.polygons
bumpupbumpup
calc borderscalc.borders
calc boxescalc.boxes
check for columnscheck.for.columns
chull gridchull.grid
chull pointschull.points
default ahulldefault.ahull
default pickerdefault.picker
defaultpf ggplotdefaultpf.ggplot
defaultpf trellisdefaultpf.trellis
Direct labels for color decodingdirect.label directlabels
direct label ggplotdirect.label.ggplot
direct label trellisdirect.label.trellis
Combine output of several methodsdl.combine
dl envdl.env
dl jitterdl.jitter
Manually move a direct labeldl.move
dl summarizedl.summarize
Direct label data transformdl.trans
Direct label comparison plotdlcompare
Make directlabels documentationdldoc
dlgrobdlgrob
draw polygonsdraw.polygons
draw rectsdraw.rects
drawDetails dlgrobdrawDetails.dlgrob
edges to outsideedges.to.outside
empty gridempty.grid
enlarge boxenlarge.box
Extract plot and definition for documentationextract.plot
Extract Positioning Method for documentationextract.posfun
extreme gridextreme.grid
extreme pointsextreme.points
far from others bordersfar.from.others.borders
filltemplatefilltemplate
first bumpupfirst.bumpup
first pointsfirst.points
first polygonsfirst.polygons
first qpfirst.qp
gapplygapply
Direct label groups independentlygapply.fun
geom dlgeom_dl
GeomDlGeomDl
get meansget.means
getLegendVariablesgetLegendVariables
ignore naignore.na
in1boxin1box
in1whichin1which
insideinside
Clustering of the iris data with the l1 clusterpathiris.l1.cluster
label endpointslabel.endpoints
label pieceslabel.pieces
lasso labelslasso.labels
last bumpuplast.bumpup
last pointslast.points
last polygonslast.polygons
last qplast.qp
lattice translatorslattice.translators
left pointsleft.points
left polygonsleft.polygons
legends2hidelegends2hide
lines2lines2
ROC curve for LOPART algorithm and competitorsLOPART.ROC
Labeled Optimal Partitioning (LOPART) resultsLOPART100
make tiebreakermake.tiebreaker
maxvar pointsmaxvar.points
maxvar qpmaxvar.qp
merge recursemerge_recurse
midrangemidrange
Clustering of some normal data in 2d with the l2 clusterpathnormal.l2.cluster
Odd timingsodd_timings
only unique valsonly.unique.vals
outside ahulloutside.ahull
outside chulloutside.chull
panel superpose dlpanel.superpose.dl
pkgFunpkgFun
polygon methodpolygon.method
Built-in Positioning Methods for direct label placementpositioning.functions positioning.methods
project onto segmentsproject.onto.segments
Timings of projection algorithmsprojectionSeconds
Make a Positioning Method for non-overlapping lineplot labelsqp.labels
reduce cexreduce.cex
reduce cex lrreduce.cex.lr
reduce cex tbreduce.cex.tb
rhtmlescaperhtmlescape
right pointsright.points
right polygonsright.polygons
Cost of segmentation modelsSegCost
smart gridsmart.grid
static labelsstatic.labels
False positive rates from several 1-SVM modelssvmtrain
top bumptwicetop.bumptwice
top bumpuptop.bumpup
top piecestop.pieces
top pointstop.points
top polygonstop.polygons
top qptop.qp
uselegend ggplotuselegend.ggplot
uselegend trellisuselegend.trellis
vertical qpvertical.qp
visualcentervisualcenter
xlimitsxlimits
ylimitsylimits