ropensci/plotly — pull request #142 by pedrodz (2014-11-07 21:35:57+00:00)
Title: ggplot: legend: title

This PR is for showing legend **titles** when the legend in not broken for the geom; not for modifying its attributes, like colour.

Summary:
- Retrieve legend title from column name of legend elements in `p$data`; and,
- Create legend title as an annotation, with position `x` and `y` dependent on legend.

Example (to be judged on full-size graph):
Before: https://plot.ly/~pdespouy/2098/posttest-vs-pretest/
After: https://plot.ly/~pdespouy/2099/posttest-vs-pretest/

Image diffs can be seen here: 3c9d75b (PNG rendering is not good, since it should be seen in full-size)

cc/ @mkcor