Nothing
#devtools::use_package('ggplot2')
#library('ggplot2')
#' @title Screeplot
#
#' @description Creates a screeplot, variables and individual factor maps to
#' summarize the results of the \code{\link[rsvd]{rpca}} function.
#'
#' @param x Object returned by the \code{\link[rsvd]{rpca}} function.
#'
#' @param ... Additional arguments passed to the individual plot functions (see below).
#'
#' @seealso \code{\link{ggscreeplot}}, \code{\link{ggcorplot}} , \code{\link{ggindplot}}
#'
#' @examples #
#'
#'@export
plot.rpca <- function(x, ... ) {
if (!requireNamespace('ggplot2', quietly = TRUE)) {
stop("The package 'ggplot2' is needed for this function to work. Please install it.",
call. = FALSE)
}
print(ggscreeplot(x, ... ))
print(ggcorplot(x, ... ))
print(ggindplot(x, ... ))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.