coord_polar
coordinate system.
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, ...)
geom_arc
and
stat_arc
.FALSE
(the default), removes missing values with a
warning. If TRUE
silently removes missing values.NA
, the default, includes if any aesthetics are mapped. FALSE
never includes, and TRUE
always includes.FALSE
, overrides the default aesthetics, rather
than combining with them. This is most useful for helper functions that
define both data and aesthetics and shouldn't inherit behaviour from the
default plot specification, e.g. borders.layer
. There
are three types of arguments you can use here:
color = "red"
or size = 3.
stat
associated with the layer.
geom_arc_bar
for drawing arcs with fill
# Lets make some data
arcs <- data.frame(
start = seq(0, 2*pi, length.out=11)[-11],
end = seq(0, 2*pi, length.out=11)[-1],
r = rep(1:2, 5)
)
# Behold the arcs
ggplot() + geom_arc(aes(x0=0, y0=0, r=r, start=start, end=end,
linetype=factor(r)),
data=arcs)
Run the code above in your browser using DataLab