data(normal.l2.cluster,package="directlabels") library(ggplot2) p <- ggplot(normal.l2.cluster$path,aes(x,y))+ geom_path(aes(group=row),colour="grey")+ geom_point(aes(size=lambda),colour="grey")+ geom_point(aes(colour=class),data=normal.l2.cluster$pts,pch=21,fill="white")+ coord_equal()
Label the closest point on the alpha hull of the data. direct.label(p,"ahull.grid") |
|
Label the closest point on the convex hull of the data. direct.label(p,"chull.grid") |
|
Label each point cloud near the extremities of the plot region. direct.label(p,"extreme.grid") |
|
Search the plot region for a label position near the center of each point cloud. direct.label(p,"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 bb6db07 Mon, 14 Jun 2021 22:38:45 +0530) using inlinedocs. |
validate |