~ubuntu-branches/ubuntu/trusty/r-cran-vgam/trusty

« back to all changes in this revision

Viewing changes to man/olympic.Rd

  • Committer: Package Import Robot
  • Author(s): Chris Lawrence
  • Date: 2011-11-04 13:13:06 UTC
  • mfrom: (1.2.9)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20111104131306-w9fd83i51rw60gxf
Tags: upstream-0.8-4
ImportĀ upstreamĀ versionĀ 0.8-4

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  Final count of medal winners by country for the 2008 Summer Olympic
7
7
  games in Beijing.
8
8
 
 
9
 
9
10
}
10
11
\usage{data(olympic)}
11
12
\format{
22
23
\details{
23
24
  The event was held during August 8--24, 2008, in Beijing.
24
25
 
 
26
 
25
27
% This is a simple two-way contingency table of counts.
26
28
 
27
29
}
28
30
\source{
29
 
  \url{http://www.associatedcontent.com/article/979484/2008_summer_olympic_medal_count_total.html}.
 
31
\url{http://www.associatedcontent.com/article/979484/2008_summer_olympic_medal_count_total.html}.
30
32
 
31
33
}
32
34
\references{
37
39
\seealso{
38
40
  \code{\link{grc}}.
39
41
 
 
42
 
40
43
}
41
44
 
42
45
\examples{
43
46
summary(olympic)
44
47
## maybe str(olympic) ; plot(olympic) ...
45
 
\dontrun{
46
 
with(head(olympic, n=8),
47
 
     barplot(rbind(gold,silver,bronze),
48
 
             col=c("gold","grey","brown"),  # No "silver" or "bronze"!
49
 
             names.arg=country, cex.names=0.5,
50
 
             beside=TRUE, main="2008 Summer Olympic Final Medal Count",
51
 
             ylab="Medal count", las=1,
52
 
             sub="Top 8 countries; 'gold'=gold, 'grey'=silver, 'brown'=bronze"))
53
 
}
 
48
\dontrun{ with(head(olympic, n = 8),
 
49
barplot(rbind(gold,silver,bronze),
 
50
        col = c("gold","grey","brown"),  # No "silver" or "bronze"!
 
51
        names.arg = country, cex.names = 0.5,
 
52
        beside = TRUE, main = "2008 Summer Olympic Final Medal Count",
 
53
        ylab = "Medal count", las = 1,
 
54
        sub = "Top 8 countries; 'gold'=gold, 'grey'=silver, 'brown'=bronze")) }
54
55
}
55
56
\keyword{datasets}