[R] Specifying plot file name in the rscript
Mahmood Naderan-Tahan
m@hmood@n@der@n @end|ng |rom ugent@be
Tue Mar 9 13:11:15 CET 2021
Hi
I use the following R script to plot two graphs.
library(FactoMineR)
mydata <- read.csv('test.csv', header=T,row.names=1)
res.pca = PCA(mydata, quali.sup=5, graph=F)
plot(res.pca, choix="var", axes=c(1,2))
dev.new()
plot(res.pca, choix="ind", axes=c(1,2))
After running "Rscript my.r", I see two pdf files Rplots.pdf and Rplots1.pdf.
I would like to specify file names in the script as well. How can I do that?
Regards,
Mahmood
[[alternative HTML version deleted]]
More information about the R-help
mailing list