stat_vector3 | R Documentation |
In order to create geoms and stats that use vector3 objects, the vector must be transformed into the common x and y ggplot aesthetics. This ensures clarity (for the reader and for the computer) that the vectors passed in are indeed vectors. Under the hood, these vectors are converted into the right XYZ values, so you don't have to think about that conversion yourself.
stat_vector3( mapping = NULL, data = NULL, geom = "point", position = "identity", show.legend = NA, inherit.aes = TRUE, ... ) geom_point3( mapping = NULL, data = NULL, stat = "vector3", position = "identity", ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE ) geom_path3( mapping = NULL, data = NULL, stat = "vector3", position = "identity", ..., lineend = "butt", linejoin = "round", linemitre = 10, arrow = NULL, na.rm = FALSE, show.legend = NA, inherit.aes = TRUE )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
geom |
The geometric object to use display the data |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
... |
Other arguments passed on to |
stat |
The statistical transformation to use on the data for this layer, as a string. |
na.rm |
If |
lineend |
Line end style (round, butt, square). |
linejoin |
Line join style (round, mitre, bevel). |
linemitre |
Line mitre limit (number greater than 1). |
arrow |
Arrow specification, as created by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.