R: Displace pixel values from a filter input.

feDisplacementMap {gridSVG} | R Documentation

## Displace pixel values from a filter input.

### Description

This filter primitive uses the pixels values from the image from `input2` to spatially displace the image from `input1`.

### Usage

    feDisplacementMap(input1 = NA, input2 = NA,
                      scale = 0,
                      xChannelSelector = c("A", "R", "G", "B"),
                      yChannelSelector = c("A", "R", "G", "B"),
                      ...)

### Arguments

`input1` | Identifies an input for this filter primtive. See `filterInputs`.
`input2` | Identfies a second input for this filter primitive. See `filterInputs`.
`scale` | Displacement scale factor. The amount is expressed in the coordinate system established by attribute `primitiveUnits` on the parent filter container. When the value of `scale` is 0, this operation has no effect on the source image.
`xChannelSelector` | Indicates which channel from `input2` to use to displace the pixels in `input` along the x-axis.
`yChannelSelector` | Indicates which channel from `input2` to use to displace the pixels in `input` along the y-axis.
`...` | Further arguments to be passed onto `fe`.

### Details

For more information about this primitive, consult the reference to the SVG specification.

### Value

An `fe.displacement.map` object.

### Author(s)

Simon Potter

### References

http://www.w3.org/TR/SVG/filters.html#feDisplacementMapElement

### See Also

`filterEffect`, `fe`.

[Package gridSVG version 1.6-0 Index]