Description Usage Arguments Details Aesthetics Computed variables Author(s) See Also Examples
This set of stats and geoms makes it possible to draw circle segments based
on a centre point, a radius and a start and end angle (in radians). These
functions are intended for cartesian coordinate systems and makes it possible
to create circular plot types without using the
ggplot2::coord_polar()
coordinate system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | stat_arc(mapping = NULL, data = NULL, geom = "arc",
position = "identity", na.rm = FALSE, show.legend = NA, n = 360,
inherit.aes = TRUE, ...)
geom_arc(mapping = NULL, data = NULL, stat = "arc",
position = "identity", n = 360, arrow = NULL, lineend = "butt",
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...)
stat_arc2(mapping = NULL, data = NULL, geom = "path_interpolate",
position = "identity", na.rm = FALSE, show.legend = NA, n = 360,
inherit.aes = TRUE, ...)
geom_arc2(mapping = NULL, data = NULL, stat = "arc2",
position = "identity", n = 360, arrow = NULL, lineend = "butt",
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...)
stat_arc0(mapping = NULL, data = NULL, geom = "arc0",
position = "identity", na.rm = FALSE, show.legend = NA,
inherit.aes = TRUE, ...)
geom_arc0(mapping = NULL, data = NULL, stat = "arc0",
position = "identity", ncp = 5, arrow = NULL, lineend = "butt",
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. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
n |
the smoothness of the arc. Sets the number of points to use if the arc would cover a full circle |
inherit.aes |
If |
... |
other arguments passed on to |
stat |
The statistical transformation to use on the data for this layer, as a string. |
arrow |
Arrow specification, as created by |
lineend |
Line end style (round, butt, square) |
ncp |
the number of control points used to draw the arc with curveGrob. Determines how well the arc approximates a circle section |
An arc is a segment of a line describing a circle. It is the fundamental visual element in donut charts where the length of the segment (and conversely the angular span of the segment) describes the proportion of an entety.
geom_arc understand the following aesthetics (required aesthetics are in bold):
x0
y0
r
start
end
color
size
linetype
alpha
lineend
The start coordinates for the segment
The end coordinates for the segment
The curvature of the curveGrob to match a circle
Thomas Lin Pedersen
geom_arc_bar()
for drawing arcs with fill
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.