cut.psp | R Documentation |
Cut a psp segments into smaller segments.
## S3 method for class 'psp'
cut(x, maxlength, ...)
x |
PSP object to be cut |
maxlength |
Maximum length of segments in the returned psp object |
... |
Ignored |
Returns a new psp object with segments length of maxlength
a
max.
svgfile = system.file("extdata", "SVG.svg", package = "svg2psp")
data = svg2psp(svgfile, reverse = TRUE, rescale = TRUE) # 217 segments
cutdata = cut(data,1) # 679 segments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.