Join us for
RADAR: AI Edition

equate (version 1.1-3)

plot.freqtab: Plotting of Frequency Distributions

Description

This function plots univariate and bivariate frequency tables of class freqtab

Usage

plot.freqtab(x, y, col1 = "gray27", col2 = "gray74", pch=16,
  yoffset = 0.3, ...)

Arguments

x
univariate or bivariate score distribution of class freqtab
y
univariate score distribution, also of class freqtab, to be added to the plot of univariate x (see details)
col1
color of lines used in plotting univarite x, and in plotting both variables in bivariate x
col2
color of lines used in plotting y
pch
plotting point (see par) used in bivariate scatterplot
yoffset
integer indicating amount of offset, in terms of x scale points, when plotting lines for y
...
further arguments passed to or from other methods, such as graphical parameters besides col

Value

  • The univariate option produces a single, simple, line plot of type="h". The bivariate option produces a scatterplot with a marginal barplot for each distribution.

Details

When x is bivariate y is ignored. Otherwise x and y are (currently) assumed to be on the same scale, which determines the x-axis. Colors must be specified using col1 and col2

See Also

plot.table, lines

Examples

Run this code
xscale <- 0:36
vscale <- 0:12
neat.xv <- freqtab(xscale, KBneat$x[, 1],
  vscale, KBneat$x[, 2])
plot(neat.xv)

neat.x <- freqtab(xscale, KBneat$x[, 1])
neat.v <- freqtab(vscale, KBneat$x[, 2])
plot(neat.x, neat.v, lwd = 2)

Run the code above in your browser using DataLab