cut.psp: Cut a psp segments into smaller segments.

View source: R/cut.psp.R

cut.pspR Documentation

Cut a psp segments into smaller segments.

Description

Cut a psp segments into smaller segments.

Usage

## S3 method for class 'psp'
cut(x, maxlength, ...)

Arguments

x

PSP object to be cut

maxlength

Maximum length of segments in the returned psp object

...

Ignored

Value

Returns a new psp object with segments length of maxlength a max.

Examples

svgfile = system.file("extdata", "SVG.svg", package = "svg2psp")
data = svg2psp(svgfile, reverse = TRUE, rescale = TRUE) # 217 segments
cutdata = cut(data,1) # 679 segments

xraynaud/svg2psp documentation built on April 7, 2024, 9:18 p.m.