Learn R Programming

Rgnuplot (version 1.0.3)

GpcheckHandle: Check if the gnuplot session handle is valid

Description

GpcheckHandle checks a gnuplot session handle and returns an error message if it is invalid

Usage

GpcheckHandle(handle)

Arguments

handle
handle to the connection

Value

See Also

Gpinit

Examples

Run this code
#Initialize the gnuplot handle
h1<-Gpinit()
#returns TRUE for valid handle
## Not run: GpcheckHandle(h1)
#close gnuplot handle
h1<-Gpclose(h1)
#this generates an error
#GpcheckHandle(h1)

Run the code above in your browser using DataLab