plot.plspm: Plots for PLS Path Models

Description Usage Arguments Details Note See Also Examples

View source: R/plot.plspm.r

Description

Plot method for objects of class "plspm". This function plots either the inner (i.e. structural) model with the estimated path coefficients, or the outer (i.e. measurement) model with loadings or weights.

Usage

1
2
3
4
5
6
  ## S3 method for class 'plspm'
 plot(x, what = "inner",
    colpos = "#6890c4BB", colneg = "#f9675dBB",
    box.prop = 0.55, box.size = 0.08, box.cex = 1,
    box.col = "gray95", lcol = "gray95",
    txt.col = "gray40", arr.pos = 0.5, cex.txt = 0.9, ...)

Arguments

x

An object of class "plspm".

what

What to plot: "inner", "loadings", "weights".

colpos

Color of arrows for positive path coefficients.

colneg

Color of arrows for negative path coefficients.

box.prop

Length/width ratio of ellipses and rectangles.

box.size

Size of ellipses and rectangles.

box.cex

Relative size of text in ellipses and rectangles.

box.col

fill color of ellipses and rectangles.

lcol

border color of ellipses and rectangles.

txt.col

color of text in ellipses and rectangles.

arr.pos

Relative position of arrowheads on arrows.

cex.txt

Relative size of text on arrows.

...

Further arguments passed on to plotmat.

Details

plot.plspm is just a wraper of innerplot and outerplot.

Note

Function plot.plspm is based on the function plotmat of package diagram.
http://cran.r-project.org/web/packages/diagram/vignettes/diagram.pdf

See Also

innerplot, outerplot, plspm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Not run: 
 ## typical example of PLS-PM in customer satisfaction analysis
 ## model with six LVs and reflective indicators
 # load data satisfaction
 data(satisfaction)

 # define inner model matrix
 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)

 # define outer model list
 sat.outer = list(1:5, 6:10, 11:15, 16:19, 20:23, 24:27)

 # define vector of reflective modes
 sat.mod = rep("A", 6)

 # apply plspm
 satpls = plspm(satisfaction, sat.inner, sat.outer, sat.mod, scheme="centroid",
               scaled=FALSE)

 # plot path coefficients
 plot(satpls, what="inner")

 # plot loadings
 plot(satpls, what="loadings")

 # plot outer weights
 plot(satpls, what="weights")
 
## End(Not run)

gastonstat/plspm2 documentation built on May 16, 2019, 5:47 p.m.