Add a box to an illustration
1 2 3 4 5 6 7 | shape_box(rdog = NULL, id = NULL, width = 1, height = 1,
depth = 1, frontFace = color, rearFace = color, leftFace = color,
rightFace = color, topFace = color, bottomFace = color,
color = "#333", stroke = 1, fill = TRUE, closed = TRUE,
visible = TRUE, backface = TRUE, front = c(z = 1), addTo = NULL,
translate = c(x = 0, y = 0, z = 0), rotate = c(x = 0, y = 0, z = 0),
scale = c(x = 1, y = 1, z = 1))
|
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 |
width, height, depth |
Dimensions of the box |
frontFace, rearFace, leftFace, rightFace, topFace, bottomFace |
Face colors of the box. Set FALSE to remove |
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.