Symbolic Matrix for Multivariate Data

DESCRIPTION:

Makes a symbolic matrix for multivariate data.

USAGE:

smatrix(x, set=c(".", "+", "*"), plength=, spread=3, scale=T, 
        rowlab=, collab=, head=, na="n") 

REQUIRED ARGUMENTS:

x
matrix of data. One symbol from set will be printed for each element of x. One line of printing is produced for each row.

OPTIONAL ARGUMENTS:

set
character string telling what should be plotted as a symbol for the values in x. Each element of set should take up only one character position when printed, but by including backspace characters in set, a set of symbols can be produced that will incorporate overstruck characters (at least on printing devices).
plength
number of lines of x to print per page. The head string (see head) is printed at the top of each page and the column labels at the bottom. The default is controlled by options("length").
spread
number of blanks to put between the columns.
scale
logical, if TRUE, the columns of x will be scaled so that the minimum in each column is 0 and the maximum is 1. If FALSE, the assumption is that x has been scaled to the range 0 to 1 by some other procedure.
rowlab
optional character vector for labelling the rows. By default, labels are the row dimnames for x or "1", "2", etc. with only every fifth label is plotted. If supplied, rowlab must have length equal to nrow(x).
collab
optional character vector for labelling the columns. By default, labels are the column dimnames for x or "1", "2", etc. with only every fifth label is plotted. If supplied, the label vector must have length equal to ncol(x).
head
optional character string for a running head. This is plotted as a title at the top of each page. By default, the expression corresponding to x is used.
na
character to be printed corresponding to missing values (NAs) in x.

VALUE:

Returns a symbolic matrix of the input matrix x.

DETAILS:

The symbols are chosen by dividing the range 0 to 1 into ns equal intervals, where ns is the number of characters in set, divided by nstrike .

EXAMPLES:

  smatrix(longley.x) 
longley.x  
1947  .   .   .   .   .   . 
1948  .   .   .   .   .   . 
1949  .   .   +   .   .   . 
1950  .   .   +   .   .   . 
1951  +   .   .   *   .   . 
1952  +   +   .   *   .   . 
1953  +   +   .   *   .   + 
1954  +   +   +   *   +   + 
1955  +   +   +   *   +   + 
1956  +   +   .   +   +   + 
1957  *   +   +   +   +   + 
1958  *   +   *   +   +   * 
1959  *   *   +   +   *   * 
1960  *   *   *   +   *   * 
1961  *   *   *   +   *   * 
1962  *   *   *   +   *   * 
      G   G   U   A   P   Y 
      N   N   n   r   o   e 
      P   P   e   m   p   a 
              m   e   u   r 
      d       p   d   l     
      e       l       a     
      f       o   F   t     
      l       y   o   i     
      a       e   r   o     
      t       d   c   n     
      o           e         
      r           s