Best quality graphics can be obtained using the PostScript driver, i.e. commands PLOT and HISTO, and then converting it to Encapsulated PostScript for exporting. For example:
PLOT Y(X)=SIN(X) / DEVICE=PS,FIG.PS
EPS FIG
Many other file formats such as PNG, JPEG and TIFF can be created using the R graphics driver, i.e. commands RPLOT and RHISTO, with DEVICE-specification. For example:
RPLOT Y(X)=SIN(X) / DEVICE=PNG,FIG.PNG