boxplotn: Drawing a figure like boxplot()

Description Usage Arguments

View source: R/plotn.R

Description

Drawing a figure like boxplot()

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
boxplotn(
  x = NULL,
  formula = NULL,
  data = NULL,
  ...,
  las = 1,
  cex.axis = 1.1,
  cex.lab = 1.3,
  font.lab = 2,
  lty = 1,
  outline = F,
  all = T,
  jitter.method = "jitter",
  staplelwd = NA,
  boxwex = 0.5,
  xlab = NULL,
  ylab = NULL,
  names = NULL,
  xlim = NULL,
  ylim = NULL,
  notch = F,
  horizontal = F,
  xaxt = "s",
  yaxt = "s",
  col.fill = NULL,
  col.bor = NULL,
  col.dot = NULL,
  col.stat = NULL,
  col.bg = "#FFFFFF",
  pch.dot = 16,
  pch.stat = 21,
  cex.dot = 0.7,
  cex.stat = 1,
  lwd.bor = 1,
  lwd.stat = 1,
  lwd.dot = 1,
  noise = 1,
  side = "center",
  side.sp = 0.3,
  reflect = T,
  Mean = F,
  SE = F,
  SD = 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,
  add = F,
  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 boxplot().

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

lty

lty

outline

If set "T", outliners are drawn. Default is "F".

all

If set "T", all points are drawn. Default is "T".

jitter.method

how to draw jitter, "jitter", "swarm", "center", "hex" and "square" are able to select. Default is "jitter".

staplelwd

staplelwd, default is "NA".

boxwex

boxwex, default is 0.5.

xlab

x label

ylab

y label

names

names

xlim

x limit

ylim

y limit

notch

notch, default is "F".

horizontal

horizontal, default is "F".

xaxt

xaxt, default is "s".

yaxt

yaxt, default is "s".

col.fill

fill color

col.bor

border color

col.dot

points color

col.stat

Mean and error bar color

col.bg

background color

pch.dot

points pch, default is 16

pch.stat

mean points pch, default is 21

cex.dot

points cex, default is 0.7

cex.stat

mean points cex, default is 1

lwd.bor

box border lwd, default is 1

lwd.stat

mean and error bar lwd, default is 1

lwd.dot

points lwd, default is 1

noise

scatter level of points, default is 1

side

move direction of boxplot, "left", "center" and "right" are able to select. Default is "center".

side.sp

Magnitude of move of boxplot, default is 0.3.

reflect

If set "T", points are not drawn in next to boxplot and reflected. Default is "T".

Mean

If set "T", mean points are drawn. Default is "F".

SE

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

SD

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

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.

add

If set "T", boxplot is able to overdrawn on previous boxplot. Default is "F".

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.