search for: myplot_

Displaying 3 results from an estimated 3 matches for "myplot_".

Did you mean: myplot
2012 Dec 24
2
whats wrong in my codes???
Dear R family,i am trying to plot and save, simultaneously, about 1000. the name of each plot is contained in "names" file. when i run this loop, i get an error. "Error in plot.new() : Unable to open file 'C:/R/SAVEHERE/myplot_Tak.jpg' for writing". could you please correct the mistake in the loop? >names<-(names(sp)) >for(a in seq_along(names)){ >mypath <- file.path("C:","R","SAVEHERE",paste("myplot_", names[a], ".jpg",sep = "")) >jpeg...
2017 Mar 14
2
gráfico jpg png
...letters of the alphabet beta1 = rnorm(26, 5, 2) ## A vector of slopes (one for each letter) beta0 = 10 ## A common intercept for(i in 1:26){ x = rnorm(500, 105, 10) y = beta0 + beta1[i]*x + 15*rnorm(500) mypath <- file.path("C:","R","SAVEHERE",paste("myplot_", names[i], ".png", sep = "")) png(file=mypath) mytitle = paste("my title is", names[i]) plot(x,y, main = mytitle) dev.off() } El original pero con jpg está en https://www.r-bloggers.com/automatically-save-your-plots-to-a-folder/ Javier Rubén Marcuzzi...
2013 Feb 17
2
Loop
Hi all, I want to execute a loop of a program: for (u in Timeframemin:Timeframe){} Imagine that Timeframemin<-10 Timefram<-10000 Is it posible to execute the loop but only proving from 10 to 10000 but jumping 10 each time, for example, execute for 10,20,30.....to Timeframe. Other question is, when a program is "heavy" and has a lot of loops to execute (how can I know where