Re: [R] CORRESPONDENCE ANALYSIS

From: Henric Nilsson <henric.nilsson_at_statisticon.se>
Date: Fri 20 Oct 2006 - 22:35:03 GMT

On 2006-10-20 19:48, Enio Jelihovschi wrote:
> Enio Jelihovschi" eniojelihovs@gmail.com
> Date: Fri, 20 Oct 2006 11:28:12 -0200
> Subject: CORRESPONCE ANALYSIS
> Dear All
> I am new R user, trying to do correspondence analysis using the function mca
> of the package MASS. My question is: In the following example
>
> farms.mca <- mca(farms, abbrev = T) # Use levels as names
>
> plot(farms.mca, cex = rep(0.7, 2), axes = F)
> How can I change the "plot" so that each factor would get a different
> colour, in order to enhance the visualization of the patterns.

Is this what you want:

text(farms.mca$cs, labels = dimnames(farms.mca$cs)[[1]],

      cex = 0.7, col = rep(2:5, c(4, 4, 3, 5)))

?

HTH,
Henric

> Thank you, for any tip in that direction.
> Enio Jelihovschi
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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
> and provide commented, minimal, self-contained, reproducible code.
>



R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Sat Oct 21 08:37:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 20 Oct 2006 - 23:30:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.