Learn R Programming

see (version 0.5.1.1)

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"),
  text_size = 3.5,
  text_color = "black",
  size = 1,
  ...
)

Arguments

x

An object.

type

Character vector, indicating the type of plot.

text_size

Size of text labels.

text_color

Color of text labels.

size

Size of geoms. Depends on the context of the plot() function, so this argument may change size of points, lines or bars.

...

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