[R] (no subject)

Angela Re angelare at to.infn.it
Thu Jan 13 16:10:52 CET 2005


Good morning,
I wrote a little code in R which has to show two graphs  but  I can get 
only one. How can I  adress  the graphs in two files?

Second, I'd like, always in the same code, to add a legend  to a graph.  
Better,  I'd like to  put in  such a legend a  new item whose color 
could remind the colour ol the columns it  refers to in the plot. I wrote:

leg.txt<-c("control people", "radiated ill people", "radiated healthy 
people",
"pesticide exposed people")

leg.col<-c("lightblue", "gray", "lightcyan","lavender")

grA<-barplot(seqA, type = "h", col = c(colors),legend.text = 
c(leg.txt),main = " Number of breaks occured on cluster A bands on 
patients' sample", xlab = "patient ID", ylab = "breaks number")
but I don't know how to assign the right colors to legend's items.

Thanks  of helping me, Angela


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rotture_campione_cluster.R
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050113/56dc2f05/rotture_campione_cluster.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ROTTURE_PER_SOGGETTO_RAD_NO_MALATI_CLUSTER_A.dat
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050113/56dc2f05/ROTTURE_PER_SOGGETTO_RAD_NO_MALATI_CLUSTER_A.pl


More information about the R-help mailing list