belplauPlot {dst}R Documentation

Plot belplau matrix

Description

Plot belplau matrix

Usage

belplauPlot(
  belplau_mat,
  xlab,
  color,
  y = "rplau",
  x = "index",
  levels = NULL,
  legend_title = "",
  main_title = "",
  is_log_scale = TRUE,
  is_negative = FALSE,
  is_factor = FALSE
)

Arguments

belplau_mat

Belplau matrix e.g. belplau(bpa)

xlab

X-axis labels e.g. c("1:34","35:68","69:101")

color

Color of xlab e.g. c(0,1,0)

y

="rplau": column name of belplau matrix

x

="index":TO BE DOCUMENTED

levels

=NULL: levels of color in order

legend_title

="": title of legend

main_title

="": main title

is_log_scale

=TRUE Whether to use log-scale

is_negative

=TRUE Whether to multiple by -1

is_factor

=FALSE Whether to plot all x labels

Value

a plot of belplau matrix

Author(s)

Peiyuan Zhu

Examples

bpa <- bca(tt = matrix(c(0,1,1,1,1,0,1,1,1),nrow = 3, 
byrow = TRUE), m = c(0.2,0.5, 0.3), 
cnames = c("a", "b", "c"), varnames = "x", idvar = 1)
bel_plau <- belplau(bpa)
belplauPlot(bel_plau, c("a","b","c"), c(1,3,2))

[Package dst version 1.7.0 Index]