Description Usage Arguments Value Author(s) See Also Examples
Gpfile2string reads the contents of a text file to a string
1  | Gpfile2string(mfile)
 | 
mfile | 
 file to be read  | 
none
Jose' Gama
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  | #"Hello World!" - loading and executing a gnuplot script from Rgnuplot
#Initialize the gnuplot handle
h1<-Gpinit()
#set gnuplot's additional search directories, to the extdata directory from Rgnuplot (default)
Gpsetloadpath(h1)
## Not run: 
#the filename has Rgnuplot's extdata path
gpfile <- system.file(package='Rgnuplot') 
#load script into a string
s<-Gpfile2string(gpfile)
#send gnuplot commands
Gpcmd(h1,s)
#pause R and gnuplot
Gppause()
## End(Not run)
#close gnuplot handle
h1<-Gpclose(h1)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.