Open leeper opened 5 years ago
What are your backward compatibility requirements for this move?
The way ggplot2 sets styling is quite different, so the options may differ somewhat.
Also, your current strategy is to have bunch of arguments baked in cplot
. Would you want to outsource some of that? For instance, if we return a ggplot
object, users can easily use + xlab('whatever')
or theme_dark
or ggtitle
, etc. That's less maintenance for your, but some users (not me) might find that less convenient.
I'd say it can be a fully rewrite (or, optionally, an entirely new function). I think it would be nice to have the plot.margins()
retain some high level arguments (converted to ggplot2 args) but cplot()
could go an entirely new direction. For example, it doesn't need to have themes or titles/labels built-in.
This would be fixed by https://github.com/leeper/margins/pull/114
PR closed. Work moved here: https://github.com/vincentarelbundock/marginsplot
Please specify whether your issue is about:
Let's get rid of base R graphics. It's much easier to customize ggplot2, so let's migrate to that instead.