Learn R Programming

MareyMap (version 1.2)

InterpolationParam-class: Class "InterpolationParam"

Description

Class holding informations about a parameter of an interpolation method. This class is used in the function userParam,Interpolation-method. These informations are used by the GUI to dynamically create the dialog to modify this parameter.

Arguments

Objects from the Class

Objects can be created by calls of the form new("InterpolationParam", ...) or using the methodInterpolationParam().

See Also

Interpolation-class

Examples

Run this code
nam <- InterpolationParam()
	paramName(nam) <- "name"
	paramDesc(nam) <- "The name of the interpolation.
"
	paramType(nam) <- "character"
	paramDefault(nam) <- "default name"
	paramMin(nam) <- 1
	paramMax(nam) <- NULL	
	paramFun(nam) <- "name"

	vis <- InterpolationParam()
	paramName(vis) <- "visible"
	paramDesc(vis) <- "Whether the line is visible on the plot or not"
	paramType(vis) <- "logical"
	paramDefault(vis) <- TRUE
	paramFun(vis) <- "visible"
	
	sav <- InterpolationParam()
	paramName(sav) <- "persistent"
	paramDesc(sav) <- "Indicate if the interpolation is to be be kept 

  when the map is saved to text file"
	paramType(sav) <- "logical"
	paramDefault(sav) <- TRUE
	paramFun(sav) <- "persistent"
	
	col <- InterpolationParam()
	paramName(col) <- "line color"
	paramDesc(col) <- "color of the line"
	paramType(col) <- "color"
	paramDefault(col) <- "#000000"
	paramFun(col) <- "color"

Run the code above in your browser using DataLab