PrettyBarPlotColor: 'PrettyBarPlotColor': create pretty bar plots with defined...

View source: R/Plot4CATA.R

PrettyBarPlotColorR Documentation

PrettyBarPlotColor: create pretty bar plots with defined colors for the sigificant columns

Description

PrettyBarPlotColor: Create pretty bar plots with defined colors for the sigificant columns. NB PrettyBarPlotColor is a variation over prettyBarPlot.

Usage

PrettyBarPlotColor(
  bootratio,
  threshold = 2,
  ylim = NULL,
  color4bar,
  color4ns = "gray75",
  plotnames = TRUE,
  main = NULL,
  ylab = NULL
)

Arguments

bootratio

the bootstrap ratios (BR) to be plotted (typically obtained from Boot4PTCA).

threshold

critical.value. The critical value for significance (default = 2, which matches a $p < .05$ significance level) |BR| < threshold are plotted in gray.

ylim

a 2-element vector giving min and mac for y if NULL (default) set to c(-abs(BR),abs(BR)).

color4bar

a vector of color names (same dimension as BR)

color4ns

(default is 'gray75') color for the non-significant BRs.

plotnames

if TRUE (default) write the names of the items.

main

(default is NULL) a title for the graph.

ylab

(default is NULL) a label for the y axis (i.e., BR).

Details

PrettyBarPlot2, is a newer ggplot2-based plotting function that can be used in lieu of PrettyBarPlotColor.

Value

A list: 1) ylim min and max for y, and 2) threshold.

Author(s)

Hervé Abdi

Vincnet Guillemeot, Hervé Abdi. # @examples # PrettyBarPlotColor(boot.ratio.test, color4BR)

See Also

PrettyBarPlot2


HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.