barplotn: Drawing a figure like barplot()

Description Usage Arguments

View source: R/plotn.R

Description

Drawing a figure like barplot()

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
barplotn(
  x = NULL,
  formula = NULL,
  data = NULL,
  ...,
  las = 1,
  cex.axis = 1.1,
  cex.lab = 1.3,
  font.lab = 2,
  lwd.bor = 2,
  lwd.axis = 1,
  lwd.0 = 1,
  lwd.stat = 1,
  lty.0 = 3,
  col.fill = NULL,
  col.bor = NULL,
  col.stat = NULL,
  col.0 = NULL,
  length = "auto",
  space = 0.5,
  names = NULL,
  xlim = NULL,
  ylim = NULL,
  xlab = NULL,
  ylab = NULL,
  SE = F,
  SD = F,
  horizontal = F,
  beside = F,
  legend = F,
  pos.leg = "outright",
  pch.leg = 22,
  bty.leg = "n",
  bg.leg = "transparent",
  pt.cex.leg = 2,
  tx.cex.leg = 1.1,
  pt.col.leg = NULL,
  pt.bg.leg = NULL,
  tx.col.leg = NULL,
  leg.lab = NULL,
  leg.sp = 2.5,
  inset = 1,
  leg.title = NULL,
  tit.col.leg = NULL,
  mar = c(2, 3.8, 1, 1),
  mgp = c(2.5, 0.5, 0),
  tcl = -0.2,
  inversion = F,
  inv.col = "#FFFFFF"
)

Arguments

x

Data, e.g. numeric vector, formula, e.g. y ~ x, or other object containing analysis result

formula

formula

data

If formula is inputted in "x" or "formula" parameter, a data.frame (or list) from which the variables in formula should be taken.

...

Argument to be passed to methods. Please see barplot().

las

las, defauls is 1

cex.axis

axis cex, default is 1.1

cex.lab

label cex, default is 1.3

font.lab

label font size, default is 2

lwd.bor

box border lwd, default is 2

lwd.axis

axis lwd, default is 1

lwd.0

Zero line lwd, default is 1

lwd.stat

Error bar lwd, default is 1

lty.0

Line type of zero line, default is 3

col.fill

fill color

col.bor

border color

col.stat

Mean and error bar color

col.0

Zero line color

length

Length of vertical bar of tip in error bar

space

Barplot space. Default is 0.5

names

names

xlim

x limit

ylim

y limit

xlab

x label

ylab

y label

SE

If set "T", standard error is drawn. Default is "F".

SD

If set "T", standard deviation is drawn. Default is "F".

horizontal

horizontal, default is "F".

beside

beside

legend

If legend is needed, set "T". Default is "F".

pos.leg

Legend position. In addition to position of legend(), "outtopright, "outright", "outbottomright" and "outbottom" are able to select. Default is "outright".

pch.leg

Legend pch, default is 22.

bty.leg

Legend box type. Default is ""n.

bg.leg

Legend background

pt.cex.leg

Points cex in legend, default is 2.

tx.cex.leg

Text cex in legend, default is 1.1.

pt.col.leg

Points color in legend.

pt.bg.leg

Points background color in legend.

tx.col.leg

Text color in legend.

leg.lab

Legend label

leg.sp

Legend space, default is 2.5.

inset

Legend inset, default is 1.

leg.title

Legend title

tit.col.leg

Legend title color

mar

mar, default is c(2,3.8,1,1).

mgp

mgp, default is c(2.5,0.5,0).

tcl

tcl, default is -0.2.

inversion

Inversion mode. If set "T", plot is drawn with inversion color. Default is "F".

inv.col

Inversion color, if set inversion = "T". Default is "#FFFFFF".


bugplant/plotn documentation built on June 23, 2021, 1:18 a.m.