Dear Users, How can I obtain a profiles graphic in a CT similar to Excel. Campo Elias PARDO [[alternative HTML version deleted]]
Dear Users, How can I obtain a profiles graphic in a CT similar to Excel. Campo Elias PARDO [[alternative HTML version deleted]]
Kjetil Brinchmann Halvorsen
2005-Feb-12 14:46 UTC
[R] Profiles graphics in a contingency table
Campo El?as PARDO wrote:>Dear Users, > > >How can I obtain a profiles graphic in a CT similar to Excel. > >Campo Elias PARDO > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > > > >If you mean profiles as in correspondence analysis, just do: ( assuming your table is mytab) N <- sum(mytab) Nr <- rowSums(mytab) Nc <- colSums(mytab) perfRow <- mytab for (i in 1:NROW(mytab)) }{ perfRow[i,] <- perfRow[i,]/Nr[i] } perfRow and then you can just plot them, maybe using lines(). But have a look into ?mosaicplot Kjetil -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra -- No virus found in this outgoing message. Checked by AVG Anti-Virus.
Campo El?as PARDO wrote:> Dear Users, > > > How can I obtain a profiles graphic in a CT similar to Excel.Do you mean a mosaicplot? If not, what do you mean with "profiles graphic" and what does "CT" stand for? [This is one of the very few unanswered (besides an enormous quantity of answered) mails within the last 24 hours. Now guess why.] Uwe Ligges> Campo Elias PARDO > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html