#Initialize the gnuplot handle
h1<-Gpinit()
## Not run:
# #change gnuplot's working directory to be the same as R's working directory (default)
# Gpsetwd(h1)
# Gpgetwd(h1)
# ## End(Not run)
#close gnuplot handle
h1<-Gpclose(h1)
Run the code above in your browser using DataLab