Nothing
if(require(ggplot2)){
if("package:directlabels" %in% search()){
detach("package:directlabels")
}
no.labels <- ggplot(iris, aes(Petal.Length, Petal.Width, color=Species))+
geom_point()
with.labels <- no.labels+
directlabels::geom_dl(aes(label=Species), method="smart.grid")
print(with.labels)
detach("package:ggplot2")
directlabels::direct.label(no.labels, "smart.grid")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.