stat_packcircles_label: Stat - Packcircles Label

Description Usage Arguments Value Examples

Description

Met deze stat kunnen aan een circle-pack labels worden toegevoegd aan het centrum. See pack_circles

Usage

1
2
3
stat_packcircles_label(mapping = NULL, data = NULL, geom = "text",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, ...)

Arguments

mapping

The mapping of aesthetics to use for this stat. Inherits from ggplot()

data

The data to use for this stat. Inherits from ggplot()

geom

The geom to use. Defaults to polygon

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.

inherit.aes

If 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().

...

Other parameters to pass

Value

Returns a layer with labels at the circle centers.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 
ggplot(data, aes(y = mpg, label = name)) + stat_packcircles() + stat_packcircles_label()

ggplot(data, aes(y = mpg, label = name)) + 
    geom_polygon(stat = StatPackCircles) + 
    geom_text(stat = StatPackCirclesLabel)

## End(Not run)

RedTent/JT documentation built on May 10, 2019, 9:58 a.m.