Open alexpghayes opened 2 years ago
plot_pdf()
and plot_cdf()
functions, I would implement these as simple convenience interfaces to the more flexible underlying plot()
function. Essentially plot_pdf <- function(x, ...) plot(x, what = "pdf", ..)
or something like that. This keeps the code DRY and facilitates maintenance while still providing shortcuts for beginners.
Where I'm at so far:
I think having
plot_pdf()
andplot_cdf()
are valuable even if there is some code repetition because the names are the most clear, and beginners in my experience have struggled with function arguments (i.e.type = "cdf"
vstype = "pdf"
), and we can take away that potential snag via specialized functions names at little additional maintenance cost.I don't think that having two distinct plotting systems is beginning friendly. I think it is important that there is one canonical way to do things in this package. I'm actually increasingly convinced aliasing
plot()
andautoplot()
is going to cause beginner confusion.I don't particularly mind a
ggplot2
hard dependency.