I have a data that looks like this:
http://dpaste.com/88561/plain/

And I intend to create multiple density curve into one plot, where each curve
correspond to the unique ID.

I tried to use "sm" package, with this code, but without success.

__BEGIN__
library(sm)
dat <- read.table("mydat.txt");
plotfn <- ("~/Desktop/flowgram_superimposed.pdf");
pdf(plotfn);

sm.density.compare(dat$V1,dat$V2, xlab = "Flow Signal")
colfill <- c(2:10);
legend(locator(1), levels(dat$V2), fill=colfill)

dev.off();
__END__

Please advice what's the right way to do it or if  there is
alternative way to do it?
I am trying to get this kind of figure:
http://img524.imageshack.us/img524/2736/testl.png


- G.V.

______________________________________________
R-help@r-project.org 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.

Reply via email to