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

Description Usage Arguments Value Examples

Description

Cut a psp segments into smaller segments.

Usage

1
2
## 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

1
2
3
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 May 14, 2019, 10:36 p.m.