View source: R/partition_column.R
Seperate an STL into several colors / bodies by logical rules
1 |
STL |
an STL object |
... |
A series of two-sided formulas. As with dplyr's case_when function, the left-hand-side (LHS) determines which values match this case. The right-hand-side determines which STL the column should be separated into. formulas can have references to 'top', 'x', 'y', 'z' and 'bot.' 'z' is shorthand for 'top', which refers to the z value of the top surface at any point. 'x' and 'y' refer to the x and y coordinates at any point, and 'bot' refers to the z value of the bottom surface. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.