Learn R Programming

plspm (version 0.2-2)

plot.plspm: Plot plspm path diagrams

Description

Plot method for objects of class "plspm"

Usage

## S3 method for class 'plspm':
plot(x, what = "inner", how = "joint", arr.pos = 0.5, 
     box.prop = 0.5, box.cex = 1, cex.txt = 1, \dots)

Arguments

x
An object of class "plspm" returned by plspm.
what
A character string indicating what models should be ploted. Options: "inner" (defualt value), "weights", "loadings", and "all".
how
A character string indicating how the diagrams should be ploted. Options: "joint" (defualt value), and "split".
arr.pos
Relative position of arrowheads on arrows.
box.prop
Length/width ratio of boxes.
box.cex
Relative size of text in boxes.
cex.txt
Relative size of text on arrows.
...
Further arguments are ignored.

Details

The function plot.plspm allows to display path diagrams of a plspm model. If what="inner" only a diagram of the inner model is displayed. If what="weights" diagrams of the outer weights for each block of variables are displayed. If what="loadings" diagrams of the loadings for each block of variables are displayed. If what="all" diagrams of the inner model, outer weights, and loadings are displayed. When how="split" all diagrams are displayed separately by each block of variables:

See Also

plspm

Examples

Run this code
## typical example of PLS-PM in customer satisfaction analysis
  ## model with six LVs and reflective indicators
  data(satisfaction)
  IMAG <- c(0,0,0,0,0,0)
  EXPE <- c(1,0,0,0,0,0)
  QUAL <- c(0,1,0,0,0,0)
  VAL  <- c(0,1,1,0,0,0)
  SAT  <- c(1,1,1,1,0,0) 
  LOY  <- c(1,0,0,0,1,0)
  sat.inner <- rbind(IMAG, EXPE, QUAL, VAL, SAT, LOY)
  sat.outer <- list(1:5,6:10,11:15,16:19,20:23,24:27)
  sat.mod <- rep("A",6)   ## reflective indicators
  res2 <- plspm(satisfaction, sat.inner, sat.outer, sat.mod, scheme="centroid", 
                scaled=FALSE)
  ## plot diagram of the inner model
  plot(res2)
  ## plot diagrams of both the inner model and outer model (loadings and weights)
  plot(res2, what="all")

Run the code above in your browser using DataLab