Description Usage Arguments Value Examples
Rose Plot
1 2 3 4 5 6 7 | stat_rose(mapping = aes(), data = NULL, center = c(0, 0),
translate.1 = NULL, trans_h.2 = NULL, trans_v.3 = NULL,
trans_al.4 = NULL, rotate.5 = 0, zoom.6 = NULL, mirror.7 = NULL,
mirror_h.8 = NULL, mirror_v.9 = NULL, na.rm = FALSE,
show.legend = NA, inherit.aes = TRUE, n = 1000, round = 360,
outer.r = 1, inner.r = 0, inner.petal = FALSE, start_angle = 0,
...)
|
mapping |
mapping |
data |
data, must be a dataframe |
center |
center coordinate, must be two numbers |
translate.1 |
Operation to whole text, which is should be two numbers for x and y values |
trans_h.2 |
Operation to whole text, which is should be one number |
trans_v.3 |
Operation to whole text, which is should be one number |
trans_al.4 |
Operation to whole text, which is should be two numbers for slope and intercept values |
rotate.5 |
Operation to whole text, which is should be one number for angle |
zoom.6 |
Operation to whole text, which is should be one number for ratio |
mirror.7 |
Operation to whole text, which is should be two numbers for slope and intercept values |
mirror_h.8 |
Operation to whole text, which is should be one number |
mirror_v.9 |
Operation to whole text, which is should be one number |
na.rm |
default is FALSE |
show.legend |
default is FALSE |
inherit.aes |
default is TRUE |
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. |
outer.r |
the radius of outer circle, default is 1 |
inner.r |
the radius of inner circle, default is 0 |
inner.petal |
a logical object. Defalut is FLASE. Whether do petal on inner circle. |
start_angle |
start angle for rose, defalut is 0 |
... |
passed to parameters |
ggplot2 style picture
1 2 3 4 5 6 7 8 9 | library(ggrose)
set.seed(2020)
df=data.frame(r=rnorm(30))
ggplot(df)+
stat_circle(color='black',fill=NA)+
stat_circle(r=1,color='black',fill=NA)+
stat_circle(r=2,color='black',fill=NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.