Usage
gp.open(where='c:/progra~1/GnuPlot/bin/pgnuplot.exe')
gp.close(pipe=gpenv$gp)
gp.send(cmd='replot',pipe=gpenv$gp)
gp.plot(x,y,type='p',add=FALSE, title=deparse(substitute(y)),pipe=gpenv$gp)
gp.splot(x,y,z, add=FALSE, title=deparse(substitute(z)), pipe=gpenv$gp, datafile=tempfile())
Arguments
where
Path to GnuPlot Executable
pipe
The pipe object connected to GnuPlot (returned from
gp.open
), warning: changing this from the default will
probably break things
cmd
Text string, the command to be sent verbatim to the GnuPlot
process
x
The x
coordinates to plot
y
the y
coordinates to plot
z
the z
coordinates to splot
type
Either 'p' or 'l' for plotting points or lines
add
Logical, should the data be added to the existing plot or
start a new plot
title
The title or legend entry
datafile
The file to store the data in for transfer to gnuplot