Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

archmap

Archetypal maps


Description

Two-dimensional projection of the observations based on the alpha coefficients into a space spanned by the (projected) archetypes.

Usage

archmap(object, projection = simplex_projection, projection_args = list(),
  rotate = 0, cex = 1.5, col = 1, pch = 1, xlab = "", ylab = "",
  axes = FALSE, asp = TRUE, ...)

Arguments

object

An archetypes object

projection

Projection function; see archmap_projections

projection_args

Arguments passed to the projection function; see archmap_projections

rotate

Rotation angle to rotate the projection

cex

Character expansion of archetypes

col

Color of observations

pch

Point character of observations

xlab

A label for the x-axis

ylab

A label for the y-axis

axes

Logical value to draw axes or not

asp

The y/x aspect ratio

...

Arguments passed to the underlying plot function

Value

Invisible matrix with the projected archetypes

See Also

Examples

## Not run: 
  data("skel", package = "archetypes")
  skel2 <- subset(skel, select = -Gender)

  set.seed(1981)
  a <- archetypes(skel2, k = 5)

  ## Simplex projection:
  archmap(a, col = skel$Gender)

  ## Simplex projection with archetypes arranged according to their
  ## distances:
  archmap(a, col = skel$Gender,
          projection = tspsimplex_projection)
  archmap(a, col = skel$Gender,
          projection = tspsimplex_projection,
          projection_args = list(equidist = TRUE))

  ## MDS projection:
  archmap(a, col = skel$Gender,
          projection = atypes_projection)

## End(Not run)

archetypes

Archetypal Analysis

v2.2-0.1
GPL (>= 2)
Authors
Manuel J. A. Eugster [aut, cre], Friedrich Leisch [aut], Sohan Seth [ctb]
Initial release
2014-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.