Package: vcdExtra 0.9.5

vcdExtra: 'vcd' Extensions and Additions

Provides additional data sets, methods and documentation to complement the 'vcd' package for Visualizing Categorical Data and the 'gnm' package for Generalized Nonlinear Models. In particular, 'vcdExtra' extends mosaic, assoc and sieve plots from 'vcd' to handle 'glm()' and 'gnm()' models and adds a 3D version in 'mosaic3d'. Additionally, methods are provided for comparing and visualizing lists of 'glm' and 'loglm' objects. This package is now a support package for the book, "Discrete Data Analysis with R" by Michael Friendly and David Meyer.

Authors:Michael Friendly [aut, cre], David Meyer [ctb], Achim Zeileis [ctb], Duncan Murdoch [ctb], Heather Turner [ctb], David Firth [ctb], Daniel Sabanes Bove [ctb], Matt Kumar [ctb], Shuguang Sun [ctb], Gavin Klorfine [aut]

vcdExtra_0.9.5.tar.gz
vcdExtra_0.9.5.zip(r-4.7)vcdExtra_0.9.5.zip(r-4.6)vcdExtra_0.9.5.zip(r-4.5)
vcdExtra_0.9.5.tgz(r-4.6-any)vcdExtra_0.9.5.tgz(r-4.5-any)
vcdExtra_0.9.5.tar.gz(r-4.6-any)vcdExtra_0.9.5.tar.gz(r-4.5-any)
vcdExtra_0.9.5.tgz(r-4.5-emscripten)
vcdExtra.pdf |vcdExtra.html
vcdExtra/json (API)
NEWS

# Install 'vcdExtra' in R:
install.packages('vcdExtra', repos = c('https://friendly.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/friendly/vcdextra/issues

Pkgdown/docs site:https://friendly.github.io

Datasets:
  • Abortion - Abortion Opinion Data
  • Accident - Traffic Accident Victims in France in 1958
  • AirCrash - Air Crash Data
  • Alligator - Alligator Food Choice
  • Asbestos - Effect of Exposure to Asbestos
  • Bartlett - Bartlett Data on Plum Root Cuttings
  • Burt - Burt (1950) Data on Hair, Eyes, Head and Stature
  • Caesar - Risk Factors for Infection in Caesarian Births
  • Cancer - Survival of Breast Cancer Patients
  • Cormorants - Advertising Behavior by Males Cormorants
  • CrabSatellites - Horseshoe Crab Mating
  • CyclingDeaths - London Cycling Deaths
  • DaytonSurvey - Dayton Student Survey on Substance Use
  • Depends - Dependencies of R Packages
  • Detergent - Detergent Preference Data
  • Donner - Survival in the Donner Party
  • Draft1970 - USA 1970 Draft Lottery Data
  • Draft1970table - USA 1970 Draft Lottery Table
  • Dyke - Sources of Knowledge of Cancer
  • Fungicide - Carcinogenic Effects of a Fungicide
  • GSS - General Social Survey- Sex and Party affiliation
  • Geissler - Geissler's Data on the Human Sex Ratio
  • Gilby - Clothing and Intelligence Rating of Children
  • Glass - British Social Mobility from Glass
  • HairEyePlace - Hair Color and Eye Color in Caithness and Aberdeen
  • Hauser79 - Hauser (1979) Data on Social Mobility
  • Heart - Sex, Occupation and Heart Disease
  • Heckman - Labour Force Participation of Married Women 1967-1971
  • HospVisits - Hospital Visits Data
  • HouseTasks - Household Tasks Performed by Husbands and Wives
  • Hoyt - Minnesota High School Graduates
  • ICU - ICU data set
  • JobSat - Cross-classification of job satisfaction by income
  • Mammograms - Mammogram Ratings
  • Mental - Mental Impairment and Parents SES
  • Mice - Mice Depletion Data
  • Mobility - Social Mobility data
  • PhdPubs - Publications of PhD Candidates
  • Reinis - Risk Factors for Coronary Heart Disease
  • ShakeWords - Shakespeare's Word Type Frequencies
  • TV - TV Viewing Data
  • Titanicp - Passengers on the Titanic
  • Toxaemia - Toxaemia Symptoms in Pregnancy
  • Vietnam - Student Opinion about the Vietnam War
  • Vote1980 - Race and Politics in the 1980 Presidential Vote
  • WorkerSat - Worker Satisfaction Data
  • Yamaguchi87 - Occupational Mobility in Three Countries

On CRAN:

Conda:

categorical-data-visualizationgeneralized-linear-modelsmosaic-plots

12.54 score 28 stars 4 packages 656 scripts 8.1k downloads 6 mentions 50 exports 81 dependencies

Last updated from:8f3185fbc1. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK247
source / vignettesOK292
linux-release-x86_64OK231
macos-release-arm64OK120
macos-oldrel-arm64OK125
windows-develOK155
windows-releaseOK170
windows-oldrelOK194
wasm-releaseOK210

Exports:as_arrayas_caseformas_freqformas_matrixas_tableassoc_graphblogitscenter3dCMHtestcollapse_levelscollapse.tablecolor_tableconditionalCrossingscutfacdatasetsdlogseriesexpand.dftexpand.tableget_modelget_modelsGKgammaglmlistHLtestjointknit_includeKwaylabeling_pointsloglin2formulaloglin2stringloglmlistLRstatsmarkovmcaplotmodFitmosaic3dmutualpairs_diagonal_mosaicplogseriesqlogseriesrange3drlogseriessaturatedseq_loglmseq_mosaicsplit3dSummariseupdate.xtabswoolf_testzero.test

Dependencies:AsioHeadersbase64encbigDbitopsbslibcacachemcallrchromoteclicolorspacecommonmarkcpp11curldigestdplyrevaluatefarverfastmapfontawesomeforcatsfsgenericsgluegnmgthighrhtmltoolshtmlwidgetsigraphjquerylibjsonlitejuicyjuiceknitrlabelinglaterlatticelifecyclelitedownlmtestmagrittrmarkdownMASSMatrixmemoisemimennetotelpillarpkgconfigprocessxpromisespsqvcalcR6rappdirsRColorBrewerRcppreactablereactRrelimprlangrmarkdownsassscalestibbletidyselecttinytexutf8V8vcdvctrsviridisLitewebshot2websocketwithrxfunxml2yamlzipzoo

Creating and manipulating frequency tables

Rendered froma1-creating.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2026-04-02
Started: 2024-10-13

1a. Steps Toward Tidy Categorical Data Analysis

Rendered froma1a-convert-collapse.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2026-04-02
Started: 2026-04-02

Tests of Independence

Rendered froma2-tests.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2025-07-24
Started: 2024-10-13

Loglinear Models

Rendered froma3-loglinear.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2024-10-13
Started: 2024-10-13

Mosaic plots

Rendered froma4-mosaics.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2024-10-13
Started: 2024-10-13

Demo - Housing Data

Rendered froma5-demo-housing.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2024-10-13
Started: 2024-10-13

Mobility tables

Rendered froma6-mobility.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2024-10-13
Started: 2024-10-13

Continuous predictors

Rendered froma7-continuous.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2025-12-11
Started: 2024-10-13

Datasets for categorical data analysis

Rendered fromdatasets.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2024-10-13
Started: 2023-02-28

tidyCat: Tidy Methods For Categorical Data Analysis

Rendered fromtidyCats.Rmdusingknitr::rmarkdownon Apr 03 2026.

Last update: 2026-02-07
Started: 2025-03-24

Readme and manuals

Help Manual

Help pageTopics
Extensions and additions to vcd: Visualizing Categorical DatavcdExtra-package vcdExtra _PACKAGE
Abortion Opinion DataAbortion
Traffic Accident Victims in France in 1958Accident
Air Crash DataAirCrash
Alligator Food ChoiceAlligator
Convert frequency, case, or table form data into an arrayas_array
Convert frequency or table form into case form.as_caseform
Convert any form (case or table form) into frequency form.as_freqform
Convert frequency, case, or table form data into a matrix.as_matrix
Convert frequency or case form data into table formas_table
Effect of Exposure to AsbestosAsbestos
Association Graph for a Loglinear Modelassoc_graph assoc_graph.glm assoc_graph.list assoc_graph.loglm print.assoc_graph
Bartlett Data on Plum Root CuttingsBartlett
Bivariate Logits and Log Odds Ratioblogits
Burt (1950) Data on Hair, Eyes, Head and StatureBurt
Risk Factors for Infection in Caesarian BirthsCaesar
Survival of Breast Cancer PatientsCancer
Generalized Cochran-Mantel-Haenszel TestsCMHtest CMHtest.default CMHtest.formula Cochran Haenszel Mantel print.CMHtest test
Collapse the levels of a datasetcollapse_levels
Collapse Levels of a Tablecollapse.table
Smart Display of Frequency Table with Colored Cell Backgroundscolor_table color_table.data.frame color_table.default color_table.ftable color_table.matrix color_table.structable color_table.table
Advertising Behavior by Males CormorantsCormorants
Horseshoe Crab MatingCrabSatellites
Crossings Interaction of FactorsCrossings
Cut a Numeric Variable to a Factorcutfac
London Cycling DeathsCyclingDeaths
Information on Data Sets in Packagesdatasets
Dayton Student Survey on Substance UseDaytonSurvey
Dependencies of R PackagesDepends
Detergent Preference DataDetergent
The Logarithmic Series Distributiondlogseries Logseries plogseries qlogseries rlogseries
Survival in the Donner PartyDonner
USA 1970 Draft Lottery DataDraft1970
USA 1970 Draft Lottery TableDraft1970table
Sources of Knowledge of CancerDyke
Expand a frequency table to case formexpand.dft expand.table
Carcinogenic Effects of a FungicideFungicide
Geissler's Data on the Human Sex RatioGeissler
Extract Model Formulas from Model Objects or Model Listsget_model get_models
Clothing and Intelligence Rating of ChildrenGilby
Calculate Goodman-Kruskal Gamma for ordered tablesGKgamma print.GKgamma
British Social Mobility from Glass(1954)Glass
Create a Model List Objectcoef.glmlist glmlist loglmlist
General Social Survey- Sex and Party affiliationGSS
Hair Color and Eye Color in Caithness and AberdeenHairEyePlace
Hauser (1979) Data on Social MobilityHauser79
Sex, Occupation and Heart DiseaseHeart
Labour Force Participation of Married Women 1967-1971Heckman
Hosmer-Lemeshow Goodness of Fit TestHLtest HosmerLemeshow plot.HLtest print.HLtest rootogram.HLtest summary.HLtest
Hospital Visits DataHospVisits
Household Tasks Performed by Husbands and WivesHouseTasks
Minnesota High School GraduatesHoyt
ICU data setICU
Cross-classification of job satisfaction by incomeJobSat
Loglinear Model Utilitiesconditional factors independence, joint loglin-utilities loglin2formula loglin2string markov models more mutual of one or other saturated some wrt
Include an HTML-renderable object in any knitr output formatknit_include
Fit All K-way Models in a GLMKway
Labeling Function for Mosaic Displays Using Pointslabeling_points
Log-Likelihood of a loglm ObjectlogLik.loglm
Brief Summary of Model Fit for glm and loglm ModelsLRstats LRstats.default LRstats.glmlist LRstats.loglmlist
Mammogram RatingsMammograms
Simple and enhanced plot of MCA solutionsmcaplot
Mental Impairment and Parents SESMental
Mice Depletion DataMice
Social Mobility dataMobility
Brief Summary of Model Fit for a glm or loglm ObjectmodFit modFit.glm modFit.loglm
Mosaic plots for fitted generalized linear and generalized nonlinear modelsassoc.glm mosaic.glm sieve.glm
Mosaic Displays for glmlist and loglmlist Objectsmosaic.glmlist mosaic.loglmlist
3D Mosaic Plotsmosaic3d mosaic3d.default mosaic3d.loglm
Diagonal Panel Function for Pairs Plots of Contingency Tablespairs.table pairs_diagonal_mosaic
Publications of PhD CandidatesPhdPubs
Plot an Association Graphplot.assoc_graph
Print Kappaprint.Kappa
Risk Factors for Coronary Heart DiseaseReinis
Sequential Loglinear Models for an N-way Tableseq_loglm
Sequential Mosaics and Strucplots for an N-way Tableseq_mosaic
Shakespeare's Word Type FrequenciesShakeWords
Subdivide a 3D Objectcenter3d range3d split3d split3d.list split3d.shape3d
Brief Summary of Model Fit for glm and loglm ModelsSummarise Summarise.default Summarise.glmlist Summarise.loglmlist
Passengers on the TitanicTitanicp
Toxaemia Symptoms in PregnancyToxaemia
TV Viewing DataTV
Update method for a 'xtabs' objectupdate.xtabs
Student Opinion about the Vietnam WarVietnam
Race and Politics in the 1980 Presidential VoteVote1980
Woolf Test for Homogeneity of Odds Ratiosprint.woolf_test woolf_test
Worker Satisfaction DataWorkerSat
Occupational Mobility in Three CountriesYamaguchi87
Score test for zero inflation in Poisson datazero.test