Le mercredi 07 mars 2012 à 01:40 -0800, aoife a écrit :
> Hey guys, Can anyone help?
> I did a correspondance analysis and made a plot.
> I also have a specific list of nodes that i want to find in my plot and want
> to either color the nodes that appear in my list differently, or put some
> kind of border around that group of nodes...
> Would anyone know how to do this?
Not if you don't tell us what package and function you used for this CA.
Can you provide a small reproducible example?
You did not provide reproducible data since you didn't give us the "test"
file or any values for gene4 and gene5. You should read the posting
guideline (particularly the use of dput) and the documentation for package
I'm assuming that you want to plot supplementary rows (as described in the
ca documentation). Using your values, making some up for gene4 and gene5,
and combining them with the original data, you want the following:
This uses the first 3 rows for the correspondence analysis and then plots
rows 4 and 5 in that space using an open circle.
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352
> -----Original Message-----
> From: [hidden email] [mailto:r-help-bounces@r-
> project.org] On Behalf Of aoife
> Sent: Wednesday, March 07, 2012 6:03 AM
> To: [hidden email] > Subject: Re: [R] find points on a graph
> Many thanks for your reply.
> Yes absolutely. So this is a small example:
> > library(ca)
> > table <- read.table("test", header=TRUE)
> > table
> codon1 codon2 codon3
> gene1 4.0 7 11
> gene2 7.0 222 8
> gene3 0.2 3 8
> > ca_analysis <- ca(table)
> > plot <- plot(ca_analysis)
> and then i took a screen shot of the plot i can see.
> http://r.789695.n4.nabble.com/file/n4453046/Screen_shot_2012-03- > 07_at_12.00.44.png
> so now for example i have a seperate file with 2 gene names:
> and i want to find these two genes/nodes on the graph, and either
> them a different color, or draw a border/shade them in some way.
> highlight them in any way?
> is this any more helpful to explain what i mean?
> View this message in context: http://r.789695.n4.nabble.com/find- > points-on-a-graph-tp4452746p4453046.html
> Sent from the R help mailing list archive at Nabble.com.
> [hidden email] 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.