Description Usage Arguments Details Author(s) See Also Examples
Creates a 3D plot of tree coarse root topology.
The plot is saved as soon as rgl has finished drawing it on the screen.
The default view is typically not very good, so zooming/rotating the plot while it's drawing can allow you to save a better plot.
rgl::rgl.snapshot
can also be used directly to save the plot once the desired view is found.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
hop |
An object of class hop. |
date |
A character string of the date to plot, in the format "YYYY-MM-DD" or of class Date. |
simu.name |
A character vector of legnth 1 indicating the SimulationName within |
tree.id |
A numeric vector of lenght 1 indicating the tree id to plot. |
color.var |
A character string indicating the name of the voxels variable to use for coloring the roots. |
color.palette |
A character vector of colors for coloring the roots to pass to |
bg |
A character string of hex value or R standard color name defining the plot background color. |
grid |
A logical indicating whether the plot should include an x,y,z grid. |
box |
A logical indicating whether the plot should include a boundign box. |
output.path |
A character string indicating the path to the directory where plots should be saved.
If |
... |
Other arguments passed to |
Key for voxel output "colonisationDirection":
0: x-
1: x-
2: y+
3: y-
4: z+
5: z-
Positive z (+z) is in the downward direction. Everything above specifies the direction from the parent voxel to the child voxel and is stored in the child.
Gregoire Talbot talbot@mailoo.org
Kevin Wolz
Other hisafe visualization functions:
hisafe_slice()
,
hisafe_snapshot()
1 2 3 4 | ## Not run:
root3D(hop = myhop, date = "2000-07-01")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.