plot2way {LearnEDA}R Documentation

Plot of an additive fit

Description

Graphs an additive fit of a two-way table.

Usage

plot2way(row.part,col.part,row.lab=NULL,col.lab=NULL)

Arguments

row.part numeric vector of values of row component
col.part numeric vector of values of column component
row.lab character vector of labels of row component
col.lab character vector of labels of column component

Author(s)

Jim Albert

Examples

temps=matrix(data=c(50,30,35,21,38,
              73,58,65,57,63,
              88,83,89,84,86,
              73,62,68,59,66),nrow=5,ncol=4,
              dimnames=list(c("Atlanta","Detroit","Kansas City",
              "Minneapolis","Philadelphia"),c("January","April",
              "July","October")))
fit=medpolish(temps)
plot2way(fit$row+fit$overall,fit$col,
  dimnames(temps)[[1]],dimnames(temps)[[2]])

[Package LearnEDA version 1.01 Index]