glBar.default: Glimma MD Plot

Description Usage Arguments Value Author(s) Examples

View source: R/glBar.R

Description

Default method for interactive bar plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Default S3 method:
glBar(
  x,
  yval,
  names.arg = rownames(x),
  ndigits = NULL,
  signif = 6,
  xlab = NULL,
  ylab = yval,
  main = NULL,
  height = 400,
  width = 500,
  colval = NULL,
  annot = yval,
  flag = NULL,
  info = NULL,
  ...
)

Arguments

x

the data.frame containing data to plot.

yval

the column name for the x-axis values.

names.arg

the column name for the label on each bar.

ndigits

the number of digits after the decimal to round to in the tooltip (overrides signif).

signif

the number of significant figures to display in the tooltip.

xlab

the label on the x-axis.

ylab

the label on the y-axis.

main

the title for the plot.

height

the height of the plot (in pixels).

width

the width of the plot (in pixels).

colval

the colours for each data point.

annot

the columns to display in the tooltip.

flag

the special flag to indicate special plot.

info

additional information for plotting.

...

additional arguments.

Value

A chart object containing the information to create an interactive bar plot.

Author(s)

Shian Su

Examples

1
2
3
4
5
6
data(mtcars)
counts <- table(mtcars$gear)
data <- data.frame(nGears=as.numeric(names(counts)), Count=as.numeric(counts))

plot1 <- glBar(data, "Count", "nGears", ylab="Number of Gears")
glimma_plot(plot1, layout=c(1,1), launch=TRUE)

Shians/Glimma documentation built on April 1, 2020, 5:46 a.m.