View source: R/values-functions.R
get.profile | R Documentation |
Get a profile (values along a specific axis, or voxel line) from a values
object. The axis is specifed trough the definition of two of the following three coordinates: x, y, z, or with a single ray object for arbitrary directions.
get.profile(values, variable = NULL, x = NULL, y = NULL, z = NULL, integrate = FALSE, ray = NULL, return.voxel.index = FALSE, return.xyz = FALSE)
values |
the |
variable |
the variable to be profiled. If it is not specified, the fist available variable will be used. |
x, y, z |
definition of the axis (only two coordinates should be defined). For example |
integrate |
perform an integration over the two coordinates (boolean, optional). Note: integration is not yet implemented around an arbitrary ray. |
ray |
The ray object, Note the ray is a data.frame defined by 6 components (X, Y, Z, xn, yn, zn), i.e. point coordinates + normalized vector direction. |
return.voxel.index |
Returns also the index of the voxel crossed by the ray (used only for a ray profile). |
return.xyz |
Returns also the x,y,z of the points along the ray (used only for a ray profile). |
a dataframe containing the specified profile.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.