Description Usage Arguments Details Value Examples
Get shape for a factor's class based on the parameter values.
1 2 | getShapeForClass(classValue, defaultShape = "square", classes = NULL,
shapes = NULL)
|
classValue |
The caller wants a shape for this class. |
defaultShape |
The default shape, if we can't return with a shape |
classes |
A list of possibly classes. |
shapes |
A list which contains the shapes of the classes. |
This is basically a LUT, which finds the proper shape for a factor's class.
We can add the classes
, the shapes
or a defaultShape
.
A shape as a string.
1 2 3 4 5 6 | ## Not run:
print(getShapeForClass("Test",classes = c("Test", "Test2"), shapes=c("triangle", "circle")))
print(getShapeForClass("Test2"))
print(getShapeForClass(NA,classes = c("Test", "Test2"), shapes=c("triangle", "circle")))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.