Learn R Programming

GeomArchetypal (version 1.0.3)

plot.grid_archetypal: Plot an Object of the class grid_archetypal

Description

It plots the output of grid_archetypal

Usage

# S3 method for grid_archetypal
plot(x, ...)

Value

No return value, called for side effects

Arguments

x

An object of the class grid_archetypal

...

Other arguments (ignored)

Details

Given an object of class grid_archetypal the archetypal analysis result is plotted.
Remark: the first 2^d rows of the input data frame has Grid Archetypes (d is the dimension of the data points).

Examples

Run this code
# Load package
library(GeomArchetypal)  
# Create random data:
set.seed(20140519)
df=matrix(runif(90) , nrow = 30, ncol=3) 
colnames(df)=c("x","y","z")
# Grid Archetypal:
gaa=grid_archetypal(df, niter = 70, verbose = FALSE)
# Plot the class "archetypal":
plot(gaa)    

Run the code above in your browser using DataLab