#' @rdname PVR
#' @encoding UTF-8
#' @export
plot.pvr<-function(x, trait = 1, ...){
graphics::plot(x$PSR.curve.axis.x, x$PSR.curve.axis.y[trait,], ylim = c(0, 1), xlim = c(0, 1), xlab = "Cumulative eigenvalues", ylab = "R2", ...)
graphics::abline(0,1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.