directlabels - dotplot - Positioning Method - angled.endpoints

Useful for labeling lines that all end at the top.

angled.endpoints <- list("last.points",rot=30)
vadeaths-lattice

vadeaths-lattice

library(lattice)
p <- dotplot(VADeaths,xlim=c(8,85),type="o")
direct.label(p,"angled.endpoints")
  
vadeaths

vadeaths

vad <- as.data.frame.table(VADeaths)
names(vad) <- c("age","demographic","deaths")
library(ggplot2)
p <- qplot(deaths,age,data=vad,group=demographic,geom="line",colour=demographic)+
  xlim(8,80)
direct.label(p,"angled.endpoints")
  
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