Description Usage Arguments Details Author(s) References Examples
Four-category proportions are visualized as points inside a tetrahedron,
using xgobi
.
1 2 3 4 |
mat4 |
matrix with 4 columns containing the data |
pointlabs |
character array of labels for rows of data; by default it is the row number as a string. |
vertexlabs |
character array of length 4 of labels for the vertices; by default it is the column number as a string. |
normalize |
logical variable indicating whether or not to force each row of data to have unit sum before display, default is false. |
The set of all four-category proportions, or, alternatively,
probability measures on finite probability fields with 4 atomic
events, is the set of nonnegative 4-vectors whose components sum up to
1. The function quadplot
uses xgobi
to represent such
vectors graphically as points inside a tetrahetron with height 1: the
four components of the vector are the distances of the point to each
of the sides of the tetrahetron. Each vertex of the tetrahedron
corresponds to the degenerate probability distribution in which one of
the atomic events has probability 1 and the others have probability 0.
The labels of these vertices indicate the event which has probability 1.
(port to R) Hans Ehrbar ehrbar@econ.utah.edu and Martin Maechler (with explicit permission from Jim Ramsay)
quadplot
was posted by Jim Ramsay ramsay@psych.mcgill.ca
to S-news on Fri, 21 May 1993 14:03:15 EDT.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.