Learn R Programming

see (version 0.6.8)

plot.see_easycormatrix: Plot method for correlation matrices

Description

The plot() method for the correlation::correlation() function.

Usage

# S3 method for see_easycormatrix
plot(
  x,
  show_labels = FALSE,
  show_p = FALSE,
  show_legend = TRUE,
  size_point = 1,
  size_text = 3.5,
  digits = 3,
  type = c("circle", "tile"),
  ...
)

Arguments

x

An object.

show_labels

Logical. If TRUE, correlation values are displayed.

show_p

Logical. If TRUE, p-values or significant level is displayed.

show_legend

Logical, show (TRUE) or hide (FALSE) legend.

size_point

Numeric specifying size of point-geoms.

size_text

Numeric value specifying size of text labels.

digits

Number of decimals used for values.

type

Character vector, indicating the type of plot.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(correlation)
data(mtcars)
result <- correlation(mtcars[, -c(8:9)])
s <- summary(result)
plot(s)
# }

Run the code above in your browser using DataLab