histn: Drawing a figure like hist()

Description Usage Arguments

View source: R/plotn.R

Description

Drawing a figure like hist()

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
histn(
  x = NULL,
  formula = NULL,
  data = NULL,
  ...,
  ylim = NULL,
  xlab = NULL,
  ylab = NULL,
  las = 1,
  main = "",
  cex.axis = 1.1,
  cex.lab = 1.3,
  font.lab = 2,
  col.fill = NULL,
  col.bor = NULL,
  hist.dens = NA,
  hist.ang = 45,
  kernel = F,
  freq = T,
  col.line = NULL,
  col.ker = "transparent",
  ker.dens = NA,
  ker.ang = 45,
  lwd.hist = 1,
  lwd.line = 2,
  breaks = NULL,
  horizontal = 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(3.8, 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 hist().

ylim

y limit

xlab

x label

ylab

y label

las

las, defauls is 1

main

Main title

cex.axis

axis cex, default is 1.1

cex.lab

label cex, default is 1.3

font.lab

label font size, default is 2

col.fill

histogram fill color

col.bor

histogram border color

hist.dens

Density of histgram fill

hist.ang

Angle of histgram fill stripe, default is 45 degree.

kernel

If set "T", density curve is also drawn. Default is "F".

freq

If set "T", data is transformed into frequency data. Default is "F".

col.line

density curve line color

col.ker

density curve fill color

ker.dens

Density of density curve fill

ker.ang

Angle of density curve fill stripe, default is 45 degree.

lwd.hist

histgram lwd, default is 1

lwd.line

density curve lwd, default is 2

breaks

breaks

horizontal

horizontal, 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(3.8,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.