stat_circle: Plot Circle

Description Usage Arguments Value Examples

Description

Plot Circle

Usage

1
2
3
stat_circle(mapping = aes(), data = NULL, center = c(0, 0),
  r = 0.5, n = 1000, round = 360, na.rm = FALSE,
  show.legend = NA, inherit.aes = TRUE, ...)

Arguments

mapping

mapping

data

data

center

center coordinate, must be two numbers, default is 0,0

r

radius, default is 1

n

the number of points, which will build a circle to help locate the text

round

the round of map, which should be 0-360, default is 360.

na.rm

na rm, defalut is FALSE

show.legend

show legend

inherit.aes

inherit aes

...

passed parameters

Value

ggplot2 style picture

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(ggrose)
set.seed(2020)
df=data.frame(r=rnorm(30))
ggplot(df)+
    stat_rose()

ggplot(df)+
    stat_rose(color='black',fill=NA)


ggplot(df)+
    stat_rose(aes(petal=r,fill=r))

yikeshu0611/ggrose documentation built on March 20, 2020, 9:56 p.m.