plotCoefs: Plot multiple coefficients in a parallel coordinate plot

View source: R/plots.R

plotCoefsR Documentation

Plot multiple coefficients in a parallel coordinate plot

Description

The function currently uses the same axes,

Usage

plotCoefs(
  x,
  type = "b",
  ...,
  commonAxis = TRUE,
  sequence = 1:ncol(x),
  col = par("col"),
  pch = par("pch"),
  lty = par("lty"),
  lwd = par("lwd"),
  cex = par("cex"),
  nEval = NULL,
  add = FALSE,
  xlim = c(0.5, length(sequence) + 0.5),
  ylim = range(c(x)),
  xlab = "j",
  axes = rep(list(c(0, 1)), ncol(x)),
  ylab = expression(c["." * j]),
  xaxt = "s"
)

Arguments

x

a matrix of coefficients

type

character plotting type: "p" points, "l" lines, "b" both, "n" nothing

...

further arguments for plot

commonAxis

logical, if TRUE all coefficients are plotted on the same axis. if FALSE individual axes are plotted. FALSE is not yet implemented.

sequence

gives the sequence of the coefficients to be plotted.

col

a (vector of) plotting colors recycled over functions

pch

a (vector of) plotting chars recycled over functions and used for the points

lty

a (vector of) line types recycled over the functions used for the lines of the continuous support

lwd

a (vector of) line widths recycled over the function used for the lines of the continuous support

cex

a (vector of) character extends recycled over the data rows and used for points

nEval

the number of discretization points for the continuous support

add

a boolean, if TRUE functions are added to an existing plot, if FALSE a new plot is generated.

xlim

the xlim of a new plot

ylim

the ylim of a new plot, if NULL it will be computed from the range of the functions.

xlab

the label of the x-axis

axes

a list of scalings for the individual parallel axes (not yet implemented)

ylab

the label of the y-axis

xaxt

a character specifying the type of xaxis, please see par or plot for a description. Use "n" to remove it and "s" to plot.

Value

The coefficient matrix 'x' (invisibly), called for the side effect of producing the parallel coordinate plot.

Examples

plotCoefs(matrix(rnorm(20),nrow=5))




DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.