The R Project SVN R

Rev

Rev 36139 | Rev 50971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36139 Rev 37294
Line 1... Line 1...
1
\name{assocplot}
1
\name{assocplot}
2
\alias{assocplot}
2
\alias{assocplot}
-
 
3
\encoding{latin1}
3
\title{Association Plots}
4
\title{Association Plots}
4
\description{
5
\description{
5
  Produce a Cohen-Friendly association plot indicating deviations from
6
  Produce a Cohen-Friendly association plot indicating deviations from
6
  independence of rows and columns in a 2-dimensional contingency
7
  independence of rows and columns in a 2-dimensional contingency
7
  table.
8
  table.
Line 37... Line 38...
37
  of a cell is greater than the expected one, the box rises above the
38
  of a cell is greater than the expected one, the box rises above the
38
  baseline and is shaded in the color specified by the first element of
39
  baseline and is shaded in the color specified by the first element of
39
  \code{col}, which defaults to black; otherwise, the box falls below
40
  \code{col}, which defaults to black; otherwise, the box falls below
40
  the baseline and is shaded in the color specified by the second
41
  the baseline and is shaded in the color specified by the second
41
  element of \code{col}, which defaults to red.
42
  element of \code{col}, which defaults to red.
-
 
43
 
-
 
44
  A more flexible and extensible implementation of association plots
-
 
45
  written in the grid graphics system is provided in the function
-
 
46
  \code{\link[vcd]{assoc}} in the contributed package \pkg{vcd} (Meyer,
-
 
47
  Zeileis and Hornik, 2005).
42
}
48
}
43
\seealso{
49
\seealso{
44
  \code{\link{mosaicplot}}; \code{\link{chisq.test}}.
50
  \code{\link{mosaicplot}}, \code{\link{chisq.test}}.
45
}
51
}
46
\references{
52
\references{
47
  Cohen, A. (1980),
53
  Cohen, A. (1980),
48
  On the graphical display of the significant components in a two-way
54
  On the graphical display of the significant components in a two-way
49
  contingency table.
55
  contingency table.
Line 53... Line 59...
53
  Friendly, M. (1992),
59
  Friendly, M. (1992),
54
  Graphical methods for categorical data.
60
  Graphical methods for categorical data.
55
  \emph{SAS User Group International Conference Proceedings}, \bold{17},
61
  \emph{SAS User Group International Conference Proceedings}, \bold{17},
56
  190--200.
62
  190--200.
57
  \url{http://www.math.yorku.ca/SCS/sugi/sugi17-paper.html}
63
  \url{http://www.math.yorku.ca/SCS/sugi/sugi17-paper.html}
-
 
64
 
-
 
65
  Meyer, D., Zeileis, A., and Hornik, K. (2005)
-
 
66
  The strucplot framework: Visualizing multi-way contingency tables with vcd.
-
 
67
  \emph{Report 22}, Department of Statistics and Mathematics, 
-
 
68
  \enc{Wirtschaftsuniversität}{Wirtschaftsuniversitaet} Wien, Research Report Series.
-
 
69
  \url{http://epub.wu-wien.ac.at/dyn/openURL?id=oai:epub.wu-wien.ac.at:epub-wu-01_8a1}
58
}
70
}
59
\examples{
71
\examples{
60
## Aggregate over sex:
72
## Aggregate over sex:
61
x <- margin.table(HairEyeColor, c(1, 2))
73
x <- margin.table(HairEyeColor, c(1, 2))
62
x
74
x