Description Usage Format Source References Examples
Data on frequency of convictions for a cohort of 395 boys.
1 |
A data frame with 15 observations on the following 2 variables.
convictions
number of convictions
boys
number of boys with given number of convictions
Farrington, D.P. 1994. Cambridge Study in Delinquent Development [Great Britain], 1961-1981. 2nd ICPSR ed. Inter-university Consortium for Political and Social Research, Ann Arbor, MI.
http://webapp.icpsr.umich.edu/cocoon/NACJD-STUDY/08488.xml
1 2 3 4 | data(Convictions)
str(Convictions)
barchart(boys ~ as.factor(convictions), Convictions, horizontal = FALSE)
xyplot( boys ~ convictions, Convictions, type = "h", lwd = 20)
|
Loading required package: nlme
Loading required package: lattice
Loading required package: grid
Loading required package: mosaic
Registered S3 method overwritten by 'mosaic':
method from
fortify.SpatialPolygonsDataFrame ggplot2
The 'mosaic' package masks several functions from core packages in order to add
additional features. The original behavior of these functions should not be affected by this.
Attaching package: ‘mosaic’
The following objects are masked from ‘package:dplyr’:
count, do, tally
The following object is masked from ‘package:Matrix’:
mean
The following object is masked from ‘package:ggplot2’:
stat
The following objects are masked from ‘package:stats’:
binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
quantile, sd, t.test, var
The following objects are masked from ‘package:base’:
max, mean, min, prod, range, sample, sum
'data.frame': 15 obs. of 2 variables:
$ convictions: int 0 1 2 3 4 5 6 7 8 9 ...
$ boys : int 265 49 21 19 10 10 2 2 4 2 ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.