Add a cylinder to an illustration
1 2 3 4 5 |
rdog |
rdog object to add the shape to. Can be a character if called from a code block in shiny |
id |
id of the shape. If NULL, a random id will be assigned |
diameter |
Diameter of the cylinder |
length |
of the cylinder |
color |
Color of the shape. A color string. |
stroke |
Width of the shape line. 0 will make it invisible |
fill |
Logical. Fill the inner shape area |
closed |
Logical. Should the first point and the last be connected |
visible |
Logical. Is the shape visible. |
backface |
Logical. Should backface be visible or a color string to set a different color |
front |
Determine where the front of the shape is to decide rendering backface color. A vector with named x, y, z elements. |
addTo |
Id of the parent object. If an rdog object is piped and addTo is set to NULL, the default parent will be the illustration itself. |
translate |
Position relative to the origin. Origin point is defined based
on |
rotate |
Set rotation. Unit is radians. Use with |
scale |
Scale dimensons. Can be an unnamed integer or a vector with named x, y ,z elements |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.