Learn R Programming

see (version 0.6.4)

plot.see_parameters_pca: Plot method for principal component analysis

Description

The plot() method for the parameters::principal_components() function.

Usage

# S3 method for see_parameters_pca
plot(
  x,
  type = c("bar", "line"),
  size_text = 3.5,
  text_color = "black",
  size = 1,
  ...
)

Arguments

x

An object.

type

Character vector, indicating the type of plot.

size_text

Size of text labels.

text_color

Color of text labels.

size

Depending on type, size of bars, lines or segments.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(parameters)
data(mtcars)
result <- principal_components(mtcars[, 1:7], n = "all", threshold = 0.2)
result
plot(result)
# }

Run the code above in your browser using DataLab