View source: R/plot.grid_archetypal.R
plot.grid_archetypal | R Documentation |
It plots the output of grid_archetypal
## S3 method for class 'grid_archetypal'
plot(x, ...)
x |
An object of the class grid_archetypal |
... |
Other arguments (ignored) |
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).
No return value, called for side effects
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.