[R] Mac OS X: Clearing R Console screen
Hi all, I'm trying to figure out how to clear the console (screen) in the Mac OS X R console. Using ctrl-l does not work. I have also tried system (clear) but, I get TERM environment variable not set., I find this a bit strange because system(ls) and other bash commands work fine. When using R in Terminal or iTerm, the system(clear) works great. Any ideas on how to get the R Console to clear, or how to set the TERM variable? I see others have had similar issues but, can't seem to find the solution. Thanks! Jesse __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Labelling a second y-axis
Hi, I am using the following code as an example function to create multiple y-axes on one plot. I have it working fine however, I can't seem to add a label on the second (right) axis. I have tried adding ylab=y2 in the axis call but, that didn't work; any ideas? Thanks, Jesse Code: function() { par(las=1,xaxs=r,mai=c(1,0.75,1,1)) x-1:10 y1-x y2-x^2 plot(x,y1,xlim=c(0,10),ylim=c(0,10),ylab=y1) title(main=Multiple Y-Axes in R,ylab=y2) par(new=TRUE) plot(x,y2,xlim=c(0,10),xaxt=n,yaxt=n,ylab=,pch=16) axis(4,at=c(0,20,40,60,80,100)) } __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.