Hi Houtan.
Do this example do what you need?
y <- matrix( rnorm(2000*5), nc=5 )
colnames(y) <- paste("sample",1:5,sep="")
plotDensity(y, col=1:5, lwd=4)
legend("topright",colnames(y),col=1:5,lwd=4)
Cheers,
Mark
On 29/07/2009, at 5:13 AM, LABrazil wrote:
>
> Hi Group,
>
> I'm using plotDensity() for a matrix 27000xN (N=5) and I want to be
> able to label the individual density plots so I know which of the N
> corresponds to the plot. I have not been successful with legends().
> I would like the legends in the top right corner. Any suggestions
> would be helpful.
>
> Thank you.
> Houtan N.
> USC, Epigenome Center
>
> >
------------------------------
Mark Robinson, PhD (Melb)
Epigenetics Laboratory, Garvan
Bioinformatics Division, WEHI
e: [email protected]
e: [email protected]
p: +61 (0)3 9345 2628
f: +61 (0)3 9347 0852
------------------------------
--~--~---------~--~----~------------~-------~--~----~
When reporting problems on aroma.affymetrix, make sure 1) to run the latest
version of the package, 2) to report the output of sessionInfo() and
traceback(), and 3) to post a complete code example.
You received this message because you are subscribed to the Google Groups
"aroma.affymetrix" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/aroma-affymetrix?hl=en
-~----------~----~----~----~------~----~------~--~---