os.plot: Graph of optimal scaling transformation

Description Usage Arguments Value See Also Examples

Description

Line and point plot showing optimally-scaled values on the vertical axis, original data values (assumed to be qualitative) on the horizontal axis.

Usage

1
2
   os.plot(x.qual, os.data, 
      main.title = "Plot of optimal transformation")

Arguments

x.qual

Vector of data values, assumed to be qualitative.

os.data

Vector of optimally-scaled data values.

main.title

Main title for plot.

Value

Object of class trellis.

See Also

plot.opscale,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  ###   x1 is vector of qualitative data
  ###   x2 is vector of quantitative values
            x1 <- c(1,1,1,1,2,2,2,3,3,3,3,3,3)     
            x2 <- c(3,2,2,2,1,2,3,4,5,2,6,6,4)     
  ###   Optimal scaling, specifying that x1
  ###   is ordinal-discrete
     op.scaled <- opscale(x.qual=x1, x.quant=x2,   
                  level=2, process=1)              
  ###   Plot of optimal scaling transformation
     os.plot(op.scaled$qual, op.scaled$os)         

Example output

Loading required package: lattice

optiscale documentation built on Feb. 3, 2021, 9:06 a.m.