Learn R Programming

Rgnuplot (version 1.0.3)

GpplotFunction: Plots an expression in one function call

Description

GpplotFunction plots an expression without the need to define handles

Usage

GpplotFunction(x, xlab='x', ylab='y', main='', type='l',...)

Arguments

x
expression
xlab
label for the x-axis
ylab
label for the y-axis
main
main title for the graphic
type
type of plot: lines or points
...
extra parameters passed to the function

Value

See Also

Gpinit

Examples

Run this code
## Not run: GpplotFunction ('sin(x)', 'x', 'y', 'sine function')

Run the code above in your browser using DataLab