plot.multigrp: plot grouped data

Description Usage Arguments Value Author(s) Examples

Description

produces pair plots of multivariate, grouped data

Usage

1
2
3
4
plot_multigrp(x, f, vars = 1:ncol(x),
cols,pchs,
    eqsc=FALSE,
    xlim=NULL, ylim=NULL, ...)

Arguments

x

a numeric matrix (or data frame with all numeric values, or (if f is missing) a list of a data matrix and a grouping variable

f

a factor describing the group structure of the data

vars

variables to plot

cols

colors to represent groups

pchs

plotting characters to represent groups

eqsc

attempt equal x and y scales?

xlim

x limits

ylim

y limits

...

further arguments to plot and points

Value

Produces a plot on the current device.

Author(s)

Ben Bolker

Examples

1
2
3
4
5
   X = simdata(npts=20,offset=20,offset2=10)
   plot_multigrp(X, pch=16)
## this can also be done with lattice ...
   library(lattice)
   splom(~data,groups=f,data=X)

bbolker/cpcbp documentation built on May 11, 2019, 9:28 p.m.