Learn R Programming

ggiraphExtra (version 0.3.0)

ggRose: Draw an interactive Rose plot

Description

Draw an interactive Rose plot

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab