archmap {archetypes}R Documentation

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

Other archmap: archmap_projections, atypes_projection, simplex_projection, tspsimplex_projection

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)

[Package archetypes version 2.2-0.1 Index]