Message-ID: <da79af330712061144m738a9bd6ob8ecb2e89e8ff2c3@mail.gmail.com>
Date: 2007-12-06T19:44:49Z
From: Henrique Dallazuanna
Subject: relationship between two factors
In-Reply-To: <4757F03B.60701@coralms.com>
Try this:
df <- data.frame(DMS=factor(rep(LETTERS[1:4], 10)),
ITS=factor(rep(LETTERS[1:4], 10)))
table(df)
plot(table(df))
--
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O
On 06/12/2007, christopher snow <snowch at coralms.com> wrote:
> I have a dataset with two variables that are factors:
>
> 1) Decision Making Satisfaction (DMS), values = A - Completely, B -
> Mostly, C - Partly, D - Not at all
> 2) IT Satisfaction values (ITS), values = A - Completely, B - Mostly, C
> - Partly, D - Not at all
>
> I would like to produce a table (matrix) and a chart of the factors,
> with counts at the cross sections:
>
> A B C D
> A
> B counts
> C
> D
>
> How can I do this in R?
>
> Many thanks,
>
> Chris
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>