plot_perm_results: Plot permuation results for plsr object

Description Usage Arguments Examples

View source: R/pls_func.R

Description

Plots the p-values for the latent variables estimated through permutation testing.

Usage

1
2
plot_perm_results(plsr_obj, ..., alpha = NULL,
  main = "Permutation Testing Results", lwd = 2, col = "red")

Arguments

plsr_obj

A plsr_obj.

...

Additional arguments passed to barplot.

alpha

The significance threshold used. Will be indicated in the plot by a horizontal line. If NULL (default), the alpha value of the plsr object will be used.

main

The title of the plot.

lwd

The line width of the line indicating alpha.

col

The color of the line indicating alpha.

Examples

1
2
3
4
5
6
plsr_obj = pls(rating_data,tracking_data,10,10)
plot_perm_results(plsr_obj)

#plot with 0.10 as the significance threshold instead of the one specified by the plsr object
#and a thicker blue-colored line to indicate it
plot_perm_results(plsr_obj,lwd=5,col="blue", alpha=0.10)

plsr documentation built on May 1, 2019, 11:28 p.m.