k_geom_c_hull_hollow: Percentage labels the are filled according to proportion...

Description Usage Arguments Examples

View source: R/k_geom_c_hull_hollow.R

Description

Percentage labels the are filled according to proportion where total in x is denominator

Usage

1
2
3
4
5
6
7
8
9
k_geom_c_hull_hollow(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(ggplot2)
library(magrittr)

chull(cars$speed, cars$dist) %>% # index of rim points
cars[.,] ->
cars_c_hull_rows

ggplot(data = cars) +
  aes(x = speed) +
  aes(y = dist) +
  geom_point() +
  geom_polygon(data = cars_c_hull_rows,
  alpha = .5
  )

ggplot(data = cars) +
  aes(x = speed) +
  aes(y = dist) +
  geom_point() +
  k_geom_c_hull_hollow(alpha = .5) +
  aes(color = speed >= 10)

EvaMaeRey/ggextend documentation built on Dec. 17, 2021, 7:24 p.m.