archmap: Archetypal maps

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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)

Example output

Loading required package: modeltools
Loading required package: stats4
Loading required package: nnls
Warning message:
'archmap' is deprecated.
Use 'simplexplot' instead.
See help("Deprecated") 
Warning message:
'archmap' is deprecated.
Use 'simplexplot' instead.
See help("Deprecated") 
Warning message:
'archmap' is deprecated.
Use 'simplexplot' instead.
See help("Deprecated") 
Warning message:
'archmap' is deprecated.
Use 'simplexplot' instead.
See help("Deprecated") 

archetypes documentation built on May 2, 2019, 9:18 a.m.