search for: anotheriv

Displaying 1 result from an estimated 1 matches for "anotheriv".

Did you mean: anotherdv
2009 Aug 26
2
simple graph question: manipulating variable names
This is a simple problem that has stumped me: I'm trying to loop through a few dozen variable names in graphs. I've tried various approaches like this: attach(mydata) ivs <- c("oneiv", "anotheriv", "yetanotheriv") dvs <- c("onedv", "anotherdv", "yetanotherdv") for (iv in ivs) { for (dv in dvs) { graphname <- paste(iv, dv, ".png", sep = "") png(file=graphname, width=300, height=300) plot(dv ~ iv, pch=".") lines(...