We currently only provide as.list()
for the ggplot
class.
We should do the same for other classes:
- ggplot_built
- mapping
- theme
- labels
- elements
It may also be good to implement convert(from = class_list, to = <ggplot classes>)
to go from plain lists to classes.