The R Project SVN R

Rev

Rev 79259 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 79259 Rev 88574
Line 1... Line 1...
1
% File src/library/graphics/man/fourfoldplot.Rd
1
% File src/library/graphics/man/fourfoldplot.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2025 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{fourfoldplot}
6
\name{fourfoldplot}
7
\alias{fourfoldplot}
7
\alias{fourfoldplot}
8
\title{Fourfold Plots}
8
\title{Fourfold Plots}
Line 71... Line 71...
71
  association is homogeneous across strata.  The fourfold display
71
  association is homogeneous across strata.  The fourfold display
72
  visualizes the pattern of association.  Note that the confidence rings
72
  visualizes the pattern of association.  Note that the confidence rings
73
  for the individual odds ratios are not adjusted for multiple testing.
73
  for the individual odds ratios are not adjusted for multiple testing.
74
}
74
}
75
\references{
75
\references{
76
  Friendly, M. (1994).
76
  \bibshow{R:Friendly:1994b}
77
  A fourfold display for 2 by 2 by \eqn{k} tables.
-
 
78
  Technical Report 217, York University, Psychology Department.
-
 
79
  \url{http://datavis.ca/papers/4fold/4fold.pdf}
-
 
80
}
77
}
81
\seealso{
78
\seealso{
82
  \code{\link{mosaicplot}}
79
  \code{\link{mosaicplot}}
83
}
80
}
84
\examples{
81
\examples{
85
## Use the Berkeley admission data as in Friendly (1995).
82
## Use the Berkeley admission data as in Friendly (1994).
86
x <- aperm(UCBAdmissions, c(2, 1, 3))
83
x <- aperm(UCBAdmissions, c(2, 1, 3))
87
dimnames(x)[[2]] <- c("Yes", "No")
84
dimnames(x)[[2]] <- c("Yes", "No")
88
names(dimnames(x)) <- c("Sex", "Admit?", "Department")
85
names(dimnames(x)) <- c("Sex", "Admit?", "Department")
89
stats::ftable(x)
86
stats::ftable(x)
90
 
87