coord_radar: coord_radar

Description Usage Arguments Examples

Description

Coordinate plotting scheme for radar plots.

Usage

1
coord_radar(theta = "x", start = 0, direction = 1)

Arguments

theta

Default is "x".

start

Determines where the circle starts. Default is 0.

direction

Determines the direction of plotting. Defaults to 1. Change to -1 to go in the opposite direction.

Examples

1
mtcars %>% rownames_to_column( var = "car" ) %>% mutate_at(2:12, funs(scale)) %>% sample_n(6) %>% gather(mpg:carb, key = "character", value = "value") %>% arrange(character) %>% ggplot(aes(x=character, y=value, group = car, color = car)) + geom_polygon(fill=NA, aes(color = car), size = 1.5) + geom_polygon(aes(fill = car), fill = NA, size = 2)+ coord_radar()

lukereding/redinglib documentation built on May 25, 2019, 9:32 p.m.