View source: R/get_num_label_repetitions.R
plot.label_repetition | R Documentation |
This function plots the number of sites have at least k label repetitions. Creating this plot is useful for assessing how to set the number of cross-validation splits (and repeats of labels per cross-validation split) to use in a datasource. This function returns a ggplot2 object which can be further modified as needed.
## S3 method for class 'label_repetition'
plot(x, ..., show_legend = TRUE)
x |
A label_repetition object that was generated from calling the get_num_label_repetitions() function. |
... |
This is needed to conform to the plot generic interface. |
show_legend |
A Boolean specifying whether to show a legend that list which label each color in the plot corresponds to. |
. Returns a ggplot object that plots the number of sites that that have at least k label repetitions as a function of k.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.