home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / postscript < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.6 KB  |  54 lines

  1.     
  2.     _P_o_s_t_S_c_r_i_p_t _G_r_a_p_h_i_c_s
  3.     
  4.          postscript(file="Rplots.ps", paper="a4", landscape=TRUE,
  5.                  width, height, family="Helvetica", pointsize=12,
  6.                  bg="white", fg="black")
  7.     
  8.     _A_r_g_u_m_e_n_t_s:
  9.     
  10.             file : the name of a file to print to, it must be a
  11.                    quoted string.
  12.     
  13.            paper : the size of paper in the printer.  The
  14.                    choices are "a4", "letter", "legal" and "exe-
  15.                    cutive".
  16.     
  17.        landscape : the orientation of the printed image, a logi-
  18.                    cal.
  19.     
  20.     width,height : the width, and height of the graphics region
  21.                    in inches.  The default is to use the entire
  22.                    page.
  23.     
  24.           family : the font family to be used.  This must be one
  25.                    of "AvantGarde", "Bookman", "Courier", "Hel-
  26.                    vetica", "Helvetica-Narrow", "NewCenturyS-
  27.                    choolbook", "Palatino" or "Times".
  28.     
  29.        pointsize : the default point size to be used.
  30.     
  31.               bg : the default background color to be used.
  32.     
  33.               bg : the default foreground color to be used.
  34.     
  35.     _D_e_s_c_r_i_p_t_i_o_n:
  36.     
  37.          The file file is opened and the PostScript commands
  38.          needed to plot any graphics requested are stored in
  39.          that file.  This file can then be printed on a suitable
  40.          device to obtain hard copy.
  41.     
  42.     _S_e_e _A_l_s_o:
  43.     
  44.          x11, macintosh, device.
  45.     
  46.     _E_x_a_m_p_l_e_s:
  47.     
  48.          # open the file "foo" for graphics output
  49.          postscript("foo")
  50.     
  51.          # produce the desired graph(s)
  52.          plot(x,y)
  53.     
  54.