GpplotEquation: Plot the curve of an equation in 2D

Description Usage Arguments Value Author(s) See Also Examples

Description

GpplotEquation plots an expression, data or a function in 2D

Usage

1
GpplotEquation(handle, equation, title)

Arguments

handle

handle to the connection

equation

equation to be plotted

title

title for the graphic

Value

none

Author(s)

Jose' Gama

See Also

Gpinit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#"Hello World!" - text on legend
#Initialize the gnuplot handle
h1<-Gpinit()
## Not run: 
#set output to a postscript file
#Gpcmd(h1,'set terminal postscript eps color;set output "helloworld1.eps"')
#label the x and y axis
GpsetXlabel(h1, 'x')
GpsetYlabel(h1, 'y')
#set plot style to "lines"
Gpsetstyle(h1, 'lines')
#plot sin(x) and add a legend
GpplotEquation(h1,'sin(x)','Hello World!')
#pause R and gnuplot
Gppause()
## End(Not run)
#close gnuplot handle
h1<-Gpclose(h1)

Rgnuplot documentation built on May 1, 2019, 9:17 p.m.