View source: R/x3p_extract_profile_segments.R
x3p_extract_profile_segments | R Documentation |
The 3d topographic surface is split into multiple segments of width width
(in pixels)
using an overlap of 10% between segments. For each segment, a line is extracted (with x3p_extract_profile
).
Line segments are projected onto the mask of the initial x3p object and exported as a lines
attribute.
x3p_extract_profile_segments(
x3p,
width,
col = "#FF0000",
linewidth = 11,
verbose = TRUE
)
x3p |
object |
width |
segment width |
col |
color |
linewidth |
integer value specifying the width for the profile |
verbose |
logical |
x3p object with added lines
attribute.
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
logo <- x3p_m_to_mum(logo)
if(interactive())
x3p_extract_profile_segments(logo, 850, col="#ffffff", linewidth=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.