Learn R Programming

Rgnuplot (version 1.0.3)

GpmatrixfilePad: Working with matrix and XY data files

Description

GpmatrixfilePad adds 1 row and 1 column (by duplicating the last row and last column) to a matrix file GpsaveXYfile saves an R matrix with coords as a XY data file Gpxydata2matrix converts a file with splot data to a gnuplot matrix file GpXYcoordsConvertFun reads a XY data file and changes the coords according to 2 functions GpXYcoords2shpere reads a XY data file and changes the coords to fit a sphere

Usage

GpmatrixfilePad(fileIN,fileOUT,overwrite=TRUE) GpsaveXYfile(Rmatrix,xyfile) Gpxydata2matrix(fileIN,fileOUT) GpXYcoordsConvertFun(xyfile,newxyfile,fun1,fun2,swapXY=FALSE) GpXYcoords2shpere(xyfile,newxyfile)

Arguments

fileIN
input file name
fileOUT
output file name
overwrite
boolean, TRUE=overwrite the output file
Rmatrix
R matrix
xyfile
input XY file name
newxyfile
output XY file name
fun1
function for the x values
fun2
function for the y values
swapXY
boolean, TRUE=swap x and y

Value

See Also

Gpmatrix2GimpPalette