[R] Save a plot with a name given as an argument in a function
Evgenia
evgts at aueb.gr
Mon Feb 9 14:14:13 CET 2015
test<-function(data, TitleGraph){
pdf("TitleGraph.pdf",width=7,height=5)
plot(data)
dev.off()
}
test(cars <- c(1, 3, 6, 4, 9),TitleGraph="etc")
My problem is that I want graph pdf being saved as etc and not as
Titlegraph.pdf
--
View this message in context: http://r.789695.n4.nabble.com/Save-a-plot-with-a-name-given-as-an-argument-in-a-function-tp4702965.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list