stat_rose: Rose Plot

Description Usage Arguments Value Examples

Description

Rose Plot

Usage

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,
  ...)

Arguments

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

Value

ggplot2 style picture

Examples

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)

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