search for: plotexampl

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

Did you mean: plotexample
2011 Jul 25
1
scripting qqplot and qqnorm
...n/test.csv",sep="",header=FALSE) qqnorm(myrns) qqline(myrns) This works fine on an interactive R session. However, as I understand the basic framework of an R script for executing on the shell to get a pdf output it is something like : #!/usr/bin/Rscript ? list inputs? pdf("plotexample.pdf", width=7, height=9) plot(...) dev.off() print(paste("Plot was saved in:", getwd())) therefore, I do : #!/usr/bin/Rscript myrns <- read.csv(file="/Users/vihan/test.csv",sep="",header=FALSE) qqnorm(myrns) dev.off() print(paste("Plot was saved...