Conversation
|
So as |
|
ayeaye. I did some changes in the last commit. Now there is no |
|
Love it. Can also use the family approach as well to get all the plot functions to link out to each other if you wish |
|
Yes! Would you add all plotting functions or just the S3 methods? |
|
could add all plotting functions with the aim of going fully S3 at some point? Note the downside of this approach is that it introduces PR noise when you add a new plot function (as all the other docs will auto update to include it) |
|
I think this is good to go for another look |
|
Where are we on this one? |
|
I think it's in principle good to go. But since there are a few conflicts anyway my idea was to fix all of the other stuff first (so that we have more clarity on what classes will exist) and do the plotting functions last. Overview of other to dos: scoringutils 2.0 (view) |
|
fair enough sounds good |
|
what are the blockers here? |
Only blocker I see is naming conventions: As discussed in #511, we maybe want to have some consistent naming convention for the classes that are only used for plotting. I was also briefly considering whether there was a case to rename
|
|
First draft: #520 |
I think this is generally how SD methods are documented. You have some influence over the order in which things appear etc., see https://cran.r-project.org/web/packages/roxygen2/vignettes/reuse.html |
|
So my takeaway from our chat earlier was that we may have been wrong about this for functions outside of the main score workflow and so we should stick with named plotting functions? |
|
I'm happy with named plotting functions for now. One JSS reviewer wanted plotting methods, but I think we can make a good case against that. Closing this PR, but please feel free to reopen. |
This PR adds S3 methods for
plot_correlation()(replacingplot_correlation()by an S3 method forplot())plot_pairwise_comparison()I'm not entirely sure how to document these methods properly. By default, the methods are hidden so a user wouldn't really know how to access the documentation.
Update:
I added links / info to the base function via @Seealso. So e.g. the documentation to
pairwise_comparison()has a link toplot.pairwise_comparison().Outdated:
At the moment I added the following to plot.R:
And then to every S3 method, I added
#' @rdname plot. The problem with this is that all the documentation just gets thrown together like this:In particular, all the function arguments are documented together:

Maybe it's not such a problem after all and we just have to standardise arguments a bit more and make it clearer overall?
Or do you have a different idea?