Shaibu Pompo wrote: > > Full_Name: Joseph Amuah > Version: 2.7.0 (2008-04-22) > OS: Windows > Submission from: (NULL) (205.207.78.4) > > > I used the plot function to create some graphs but wanted to add soem > restrictions. A set of warning were produced even though the plot worked > fine. > Can these warnings be cleaned up? Here is an example: > *************************************** >> plot(xx$month, xx$log10RR, xlab="", ylab="", type='n', xlim=c(0,60), > ylim=c(-0.2,0.3),tick=F, labels=F) > Warning messages: > 1: In plot.window(...) : "tick" is not a graphical parameter > 2: In plot.window(...) : "labels" is not a graphical parameter > 3: In plot.xy(xy, type, ...) : "tick" is not a graphical parameter > 4: In plot.xy(xy, type, ...) : "labels" is not a graphical parameter > 5: In box(...) : "tick" is not a graphical parameter > 6: In box(...) : "labels" is not a graphical parameter > 7: In title(...) : "tick" is not a graphical parameter > 8: In title(...) : "labels" is not a graphical parameter >> # expect warning that tick and labels are non-graphical parameters but it > works >> points(xx$month, xx$log10RR, col='red') >> lines(xx$month, xx$log10RR, col='red') > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
Try: plot(xx$month, xx$log10RR, xlab="", ylab="", type='n', xlim=c(0,60),ylim=c(-0.2,0.3)) ----- Blay S KATH Kumasi, Ghana. -- View this message in context: http://www.nabble.com/Unnecssary-warnings-in-plot-function-%28PR-11530%29-tp17516160p17527998.html Sent from the R devel mailing list archive at Nabble.com. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel