Description Usage Arguments Examples
Coordinate plotting scheme for radar plots.
1 | coord_radar(theta = "x", start = 0, direction = 1)
|
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. |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.