Learn R Programming

Rgnuplot (version 1.0.3)

GpSHP2gnu: Work with shapefiles

Description

GpSHP2gnu given a shapefile (SHP) with full path and the shapefile layer name, the coordinates are saved to a text file readable by gnuplot

GpresampleDEM resamples DEM data, similarly to what GIS applications do

GpboxXY returns the box (coordinates) around a location, from a shapefile

GpmapPNG2lines draws "squarish" coastlines given a gridded map from a PNG image

Gpmatrix2PNG saves a matrix with a mask of a map to a PNG file

GpplotMap plots a map with vector and raster overlays

Usage

GpSHP2gnu(SHPfilename, SHPlayername,gnufilename,toCRS='+init=epsg:4326') GpresampleDEM(fileIN, fileOUT, xrange, yrange, interpolationMethod, XYformat=FALSE) GpboxXY(fileName) GpmapPNG2lines(PNGfile, landoutlinefile) Gpmatrix2PNG(matM,PNGfile) GpplotMap(mapvectfiles=NA, projection='PlateCarree', linetype='l', linestyle=1, plotTitle=NA, maprastfile=NA, maprastpalette=NA, AdditionalCode=NA,projectionInit=NA,returnCode=FALSE)

Arguments

SHPfilename
shapefile name
SHPlayername
shape layer name
gnufilename
output data file name
toCRS
optional CRS string to modify the projection
fileIN
input data file name
fileOUT
output data file name
xrange
x-axis range
yrange
y-axis range
interpolationMethod
dgrid3d interpolation method
fileName
shapefile name
PNGfile
PNG input file name
landoutlinefile
vector output file name
matM
matrix with map raster data
XYformat
boolean, TRUE=use XY format in input file
mapvectfiles
filenames with vector data
projection
cartographic projection
linetype
line type
linestyle
line style
plotTitle
title for the plot
maprastfile
filename of the raster file
maprastpalette
filename of the raster file's palette
AdditionalCode
additional code to run before the plot
projectionInit
initialization values for the projection
returnCode
boolean, if TRUE the code is returned as a string

Value

See Also

Gpmapsr2gnu