Learn R Programming

dst (version 1.8.0)

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

Value

a plot of a column of the belplau matrix or a numerical vector quantifying order of importance of the elements of the frame

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

Author

Peiyuan Zhu

Examples

Run this code
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))

Run the code above in your browser using DataLab