Learn R Programming

pamctdp (version 0.1.8)

plotct: Row and Column Profiles of a Contingency Table

Description

It plots barplot profiles of rows or columns from a contingency table including marginal profiles

Usage

plotct(x,profiles="both",legend.text=TRUE,... )

Arguments

x
contingency table
profiles
select profiles: "both" file and column profiles in two graph devices, "row" only row profiles, "col" only column profiles
legend.text
if it is TRUE a box with legends is included at the right
...
further arguments passed to or from other methods

encoding

latin1

Details

Plot row profiles in horizontal form and columns profiles in vertical form

Examples

Run this code
mycolors<-colors()[c(1,26,32,37,52,57,68,73,74,81,82,84,88,100)]
data(mores5)
plotct(mores5$tab,col=mycolors)

Run the code above in your browser using DataLab