cor: Correlation Structure

View source: R/cor.h.R

corR Documentation

Correlation Structure

Description

Correlation Structure

Usage

cor(
  data,
  vars,
  type = "pearson",
  mat = TRUE,
  missing = "pairwise.complete.obs",
  order = "hclust",
  method = "complete",
  k = 2,
  size = 3,
  color = "blue",
  plot = FALSE,
  method1 = "circle",
  type1 = "full",
  width = 500,
  height = 500
)

Arguments

data

The data as a data frame.

vars

.

type

.

mat

.

missing

.

order

.

method

.

k

.

size

.

color

.

plot

.

method1

.

type1

.

width

.

height

.

Value

A results object containing:

results$instructions a html
results$matrix a table
results$plot an image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$matrix$asDF

as.data.frame(results$matrix)


hyunsooseol/seolmatrix documentation built on July 4, 2025, 3:05 a.m.