plot.tfer: plot method for objects of transfer class

Description Usage Arguments

View source: R/plot.transfer.R

Description

plot method for objects of transfer class

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'tfer'
plot(
  x,
  ptype = c("density", "freq", "hist"),
  xlab = "n",
  main = "",
  col = "red",
  ...
)

Arguments

x

an object of class transfer

ptype,

one of "density", "freq", or "hist". "density" will give a barplot with probability on the y-axis, "frequency" will give a barplot with frequencies (counts) on the y-axis, and "hist" will produce a historgram with frequency (counts) on the y-axis. One-letter versions will also work, i.e. "d", "f" and "h". The original 0, 1, 2 will also work, but this usage is deprecated and will produce a warning.

xlab

the x-axis label, by default "n"

main

the plot title, empty by default

col

the colour of the bars in the plot, by default "red"

...

any other arguments to be passed to barplot or histogram


tfer documentation built on July 15, 2020, 5:08 p.m.

Related to plot.tfer in tfer...