Description Usage Arguments Value Author(s) Examples
Function to graphically show a CV scheme made by the crossValidate function
1 |
data |
a data frame with at least the following information:
|
scheme |
data frame output from the crossValidate function which was based on a user decided sampling strategy to use in the cross-validation. |
title |
character defining the title of the plot |
plot based on the ggplot package which shows the splitting of the training and validation sets for the first replication. Further, the plot is split by the levels of the chosen factor, which is generally the location.
Ruud Derijcker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(exampleCV)
scheme1 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="randomByFactor",verbose=TRUE)
scheme2 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="incompleteTrial",verbose=TRUE)
scheme3 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="randomAccrossFactor",verbose=TRUE)
scheme4 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="randomWithinFactor",verbose=TRUE)
scheme5 <- crossValidate(x=exampleCV, id="GERMPLASM", factor="LOCATION",
k=5, replication=3, seed=NULL, exclusive=TRUE,
sampling="randomByID",verbose=TRUE)
plotCV(exampleCV, scheme1, "CV-scheme based on randomByFactor")
plotCV(exampleCV, scheme2, "CV-scheme based on incompleteTrial")
plotCV(exampleCV, scheme3, "CV-scheme based on randomAccrossFactor")
plotCV(exampleCV, scheme4, "CV-scheme based on randomWithinFactor")
plotCV(exampleCV, scheme5, "CV-scheme based on randomByID")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.