"homals"
.## S3 method for class 'homals':
plot(x, plot.dim = c(1, 2), plot.type = "jointplot", var.subset, main, type, xlab, ylab, xlim, ylim,
leg.pos = "topright", identify = TRUE, ...)
## S3 method for class 'homals':
plot3d(x, plot.dim = c(1, 2, 3), plot.type = "jointplot", var.subset, type, xlab, ylab,
zlab, col, main, sphere = TRUE, bgpng = "particle.png", ax.grid = TRUE, ...)
## S3 method for class 'homals':
plot3dstatic(x, plot.dim = c(1, 2, 3), plot.type = "jointplot", var.subset, main, type,
xlab, ylab, zlab, xlim, ylim, zlim, ...)
"homals"
"jointplot"
, "catplot"
"labplot"
, "objplot"
, "starplot"
, "graphplot"
, "hullplot"
,
"lossplot"
"trfplot"
and "spanplot"
only)
as provided in legend
.TRUE
, interactive plots are provided.NULL
, blank background.TRUE
grid is drawn.plot
, plot3d
in package rgl
, and scatterplot3
plot.type = "objplot"
): Plots the scores of the objects (rows in data set) on two or
three dimensions.
- Category plot (plot.type = "catplot"
): Plots the rank-restricted category quantifications for each
variable separately. Three-dimensional plot is available.
- Voronoi plot (plot.type = "vorplot"
): Produces a category plot with Voronoi regions.
- Joint plot (plot.type = "jointplot"
): Plots the object scores and the category quantifications in 1 device.
Three-dimensional version is available.
- Graph plot (plot.type = "graphplot"
): Joint plot with connections between scores/quantifications.
- Hull plot (plot.type = "hullplot"
): For each single variable the object scores are mapped onto two
dimensions and the convex hull for each response category is drawn.
- Label plot (plot.type = "labplot"
): Similar to object plot, the object scores are plotted but for
each variable separately with the corresponding category labels. A three-dimensional
version is provided.
- Span plot (plot.type = "spanplot"
): As label plot, it maps the object scores for each variable and
span plot connects them by the shortest path within each response category.
- Star plot (plot.type = "starplot"
): Again, the object scores are mapped. In addition these points
are connected with the category centroid. Three-dimensional version is provided.
- Loss plot (plot.type = "lossplot"
): Plots the rank-restricted category quantifications against the
unrestricted for each variable separately.
- Projection plot (plot.type = "prjplot"
): For variables of rank 1 the object scores (two-dimensional)
are projected onto a straight line determined by the rank restricted category quantifications.
- Vector plot (plot.type = "vecplot"
): For variable of rank 1 the object scores (two-dimensional) are
projected onto a straight line determined by the rank restricted category quantifications.
- Transformation plot (plot.type = "trfplot"
): Plots the original (categorical) scale against the
transformed (metric) scale on each dimension over the categories of each variable separately.
- Loadings plot (plot.type = "loadplot"
): Plots the loadings of the variables and connects them with the origin. Three-dimensional version is available.
- Scree plot (plot.type = "screeplot"
): Produces a scree plot based on the eigenvalues.
- Discrimination measures (plot.type = "dmplot"
): Plots the discrimination measures for each variable.homals
##Graphplot for Hartigan solution: 3 dimensions extracted, dimension 1 plotted
##against dimension 3.
data(hartigan)
res <- homals(hartigan, ndim = 3)
plot(res, plot.dim = c(1,3), plot.type = "graphplot")
##3D star plot for indentation and bottom
plot3d(res, plot.type = "starplot", var.subset = c(2,4))
##Static 3D joint plot for thread and bottom
plot3dstatic(res, plot.type = "jointplot", var.subset = c(1,4))
Run the code above in your browser using DataLab