tdhock / animint

animated and interactive web graphics
146 stars 37 forks source link

Some themes from the ggthemes package don't seem to work #89

Closed kferris10 closed 9 years ago

kferris10 commented 9 years ago

The ggthemes package provides some additional themes for ggplot2. But some of them don't seem to work with animint.

animint2dir(list(p1 = qplot(Sepal.Width, Sepal.Length, data = iris, colour = Species) + theme_fivethirtyeight()))

 Error in serialize(object, connection = NULL, ascii = ascii) : 
  object 'direction' not found 

Traceback shows that the error occurs when using guides_train() in getLegendList()

4 ggplot2:::guides_train(scales = scales, theme = theme, guides = guides.list, 
    labels = plot$labels) at animint.R#1127
3 getLegendList(meta$built) at animint.R#209
2 parsePlot(meta) at animint.R#929
1 animint2dir(list(p1 = qplot(Sepal.Width, Sepal.Length, data = iris, 
    colour = Species) + theme_fivethirtyeight())) 

This error occurs for the following themes:

kferris10 commented 9 years ago

Closed with #95