View source: R/FactoClass.tex.R
FactoClass.tex | R Documentation |
The coordinates, aids of interpretation and results of
cluster analysis of an object of class FactoClass
are written
in tables for edition in LaTeX format and
written in a file.
FactoClass.tex(FC,job="",append=TRUE, dir = getwd(), p.clust = FALSE )
## S3 method for class 'FactoClass.tex'
print(x, ...)
latexDF(obj, job="latex" ,tit="" ,lab="" ,append=TRUE ,dec=1,
dir = getwd() , to.print = TRUE )
roundDF(tabla,dec=1)
FC |
object of class FactoClass. |
job |
A name to identify the exit. |
append |
if is |
dir |
name of the directory in which the file is kept. |
p.clust |
the value of this parameter is 'TRUE' or 'FALSE' to print or not the cluster of each element. |
tabla |
object of class 'data frame'. |
dec |
number of decimal. |
x |
object of class |
... |
further arguments passed to or from other methods |
obj |
object of class data.frame. |
tit |
title of the table in LaTeX format. |
lab |
label of the table in LaTeX format. |
to.print |
if it is |
This function helps with the construction of tables in
LaTeX format.
Besides, it allows a easy reading of the generated results
by FactoClass. The function latexDF is an entrance
to xtable
and turns an object of class data.frame a table in LaTeX format.
object of class FactoClass.tex
with the following characteristics:
tvalp |
eigenvalues * 1000. |
c1 |
eigenvectors. |
co |
coordinates of the columns. |
col.abs |
contribution of each column to the inertia of the axis (percentage). |
col.rel |
quality of representation of each column (percentage). |
col.cum |
quality of representation of each column accumulated in the subspace (percentage). |
li |
coordinates of the rows. |
row.abs |
contribution of each rows to the inertia of the axis (percentage). |
row.rel |
quality of representation of each rows (percentage). |
row.cum |
quality of representation of each rows accumulated in the subspace (percentage). |
indices |
table of indices of level generated by the Ward cluster analysis. |
cor.clus |
coordinates of the center of gravity of each cluster. |
clus.summ |
summary of the cluster. |
carac.cate |
cluster characterization by qualitative variables. |
carac.cont |
cluster characterization by quantitative variables. |
cluster |
vector indicating the cluster of each element. |
Pedro Cesar del Campo pcdelcampon@unal.edu.co, Campo Elias Pardo cepardot@unal.edu.co
data(DogBreeds)
DB.act <- DogBreeds[-7] # active variables
DB.ilu <- DogBreeds[7] # illustrative variables
# MCA
FaCl <- FactoClass( DB.act, dudi.acm,
scanFC = FALSE, dfilu = DB.ilu, nfcl = 10, k.clust = 4 )
# In order to create a file in LaTeX format
# FactoClass.tex(FaCl,job="DogBreeds1", append=TRUE)
# FactoClass.tex(FaCl,job="DogBreeds", append=TRUE , p.clust = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.