ggRose: Draw an interactive Rose plot

Description Usage Arguments Value Examples

View source: R/ggRose.R

Description

Draw an interactive Rose plot

Usage

1
ggRose(data, mapping, palette = "Reds", color = "black", size = 0.1, ...)

Arguments

data

A data.frame

mapping

Set of aesthetic mappings created by aes or aes_.

palette

A character string indicating the color palette

color

Bar colour

size

Bar size

...

other arguments passed on to geom_bar_interactive.

Value

An interactive Rose plot

Examples

1
2
3
4
5
6
require(moonBook)
require(ggplot2)
require(ggiraph)
require(plyr)
ggRose(rose,aes(x=Month,fill=group,y=value),stat="identity",interactive=TRUE)
ggRose(acs,aes(x=Dx,fill=smoking),interactive=TRUE)

Example output

Loading required package: moonBook

Attaching package: 'moonBook'

The following objects are masked from 'package:ggiraphExtra':

    addLabelDf, getMapping

Loading required package: ggplot2
Loading required package: ggiraph
Loading required package: plyr

ggiraphExtra documentation built on Oct. 23, 2020, 7:39 p.m.