R/corr.R

Defines functions corrApp

Documented in corrApp

#' @title Correlation Analysis
#' @return Nothing
#' @description
#' corrApp() function opens up an interactive shiny app which will
#' allow the user to easily calculate Simple correlation, Correlation Matrix and obtain plots
#' like correlogram and scatterplot by uploading CSV file.
#' @details
#' This app uses \code{cor.test} to calculate correlation. Correlation matrix
#' is calculated using \code{rcorr} function in \code{Hmisc} package. Correlogram
#' is obtained using \code{corrplot} function in \code{corrplot} package.
#' @keywords
#' Correlation
#' Correlation Matrix
#' Correlogram
#' Scatter plot
#' @usage
#' corrApp()
#' @export
#' @examples
#' if (interactive()) {
#'   corrApp()
#' }
#' @references
#'
#'
#'
#' \insertRef{corrplot2021}{grapesAgri1}
#'
#' \insertRef{Hmisc_2021}{grapesAgri1}
#'
#' \insertRef{R_2021}{grapesAgri1}
#'
#' \insertRef{shiny_2021}{grapesAgri1}
#'
#' \insertRef{sw_2021}{grapesAgri1}
#'
#' \insertRef{ggplot_2016}{grapesAgri1}
#'
#' \insertRef{gupta1985statistical}{grapesAgri1}


corrApp = function() {
  appDir = system.file("Corr", package = "grapesAgri1")
  if (appDir == "") {
    stop("Could not find directory. Try re-installing `grapesAgri1`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the grapesAgri1 package in your browser

Any scripts or data that you put into this service are public.

grapesAgri1 documentation built on Aug. 14, 2021, 5:07 p.m.