plot method for objects of transfer class
# S3 method for tfer
plot(
x,
ptype = c("density", "freq", "hist"),
xlab = "n",
main = "",
col = "red",
...
)
an object of class transfer
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.
the x-axis label, by default "n"
the plot title, empty by default
the colour of the bars in the plot, by default "red"
any other arguments to be passed to barplot
or histogram