belplauPlot: Plot belplau matrix

View source: R/belplauPlot.R

belplauPlotR 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) or a numerical vector quantifying order of importance of the elements of the frame

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. Ignore if it's not belplau matrix.

x

= "index": x-axis name

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 a column of the belplau matrix or a numerical vector quantifying order of importance of the elements of the frame

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))

RAPLER/dst-1 documentation built on Oct. 15, 2024, 9:24 p.m.