plot.tfer {tfer}R Documentation

plot method for objects of transfer class

Description

plot method for objects of transfer class

Usage

## 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


[Package tfer version 1.3 Index]