Skip to content
Prev 67125 / 398506 Next

R can not show plots (in Mac OS X terminal)

Did you install R from source code, or did you install the binary?

If you installed the binary, then you can start R by double-clicking 
on the R application icon. Then your default graphics device will not 
require X windows, and will be fully interactive (in the R sense).

If you installed from source code, you may or may not have the 
double-clickable application, depending on what configuration options 
you specified.

If you don't want to use the GUI interface provided by the binary 
download, then you will have the best results if you work in the X 
windows environment, in my opinion (there are other opinions). You 
can work in the X  windows environment with either the binary 
installation, or if you installed from source.

Obviously, however, you have to have X Windows installed in order to 
use it with R -- and if you installed R from source code, you need to 
install X Windows *before* installing R. I don't know if order 
matters if you installed the binary.

If you don't want to use the GUI, and don't want to use X Windows, 
then you are operating outside of my experience. But try starting a 
graphics device using

     quartz()

*before* issuing any plot() command. See also

   ?Devices

I believe there may be alternatives to what I've outlined here, but I 
don't know what they are.

-Don
At 7:12 PM +0100 4/5/05, Minyu Chen wrote: