PrettyBarPlotColor4Q: 'PrettyBarPlotColor4Q' Plot the result of Cochran's Q for the...

View source: R/Plot4CATA.R

PrettyBarPlotColor4QR Documentation

PrettyBarPlotColor4Q Plot the result of Cochran's Q for the columns of a CATA table of data.

Description

PrettyBarPlotColor4Q: Plot the result of Cochran's Q for the columns of a CATA table of data along with the critical value (user provided) NB: This version is temporary and will likely be rewriten (see PrettybarPlot2 for a ggplot2-based equivalent function).

Usage

PrettyBarPlotColor4Q(
  bootratio,
  threshold,
  ylim = NULL,
  color4bar = "darkorchid4",
  color4ns = "gray75",
  PrintSignificantOnly = TRUE,
  plotnames = TRUE,
  main = NULL,
  ylab = NULL
)

Arguments

bootratio

the Q values to be plotted

threshold

(no default) Treshold for significance, Q > threshold are plotted in gray

ylim

the lower and upper limits for the y-axis if NULL (default) set to c(-max(abs(y)) , max(abs(y)) )

color4bar

the colors for the items (default is 'darkorchid4')

color4ns

the color for a non significant item (default is 'gray75')

PrintSignificantOnly

when TRUE (default) print only the significant items

plotnames

when TRUE (default), plot the names in the bars

main

a title for the plot (default is NULL)

ylab

a label for the y axis (default is NULL) # @examples # PrettyBarPlotColor4Q(bootratio,threshold)

Author(s)

Hervé Abdi

See Also

PrettyBarPlot2


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