## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 5) ## ----------------------------------------------------------------------------- library(ggplot2) library(ggcircular) ggplot(wind_directions, aes(x = direction)) + geom_rose(bins = 16) + scale_x_circular_degrees() + coord_circular() + theme_rose() ## ----------------------------------------------------------------------------- ggplot(wind_directions, aes(x = direction)) + geom_rose(bins = 32) + scale_x_circular_degrees() + coord_circular() + theme_rose() ## ----------------------------------------------------------------------------- ggplot(wind_directions, aes(x = direction)) + geom_rose(aes(fill = after_stat(proportion)), bins = 16, normalize = "proportion") + scale_x_circular_degrees() + coord_circular() + theme_rose() ## ----------------------------------------------------------------------------- ggplot(wind_directions, aes(x = direction)) + geom_rose(bins = 16, area = TRUE) + scale_x_circular_degrees() + coord_circular() + theme_rose() ## ----------------------------------------------------------------------------- ggplot(wind_directions, aes(x = direction, fill = season)) + geom_rose(bins = 16, alpha = 0.7) + facet_wrap(~ season) + scale_x_circular_degrees() + coord_circular() + theme_rose() ## ----------------------------------------------------------------------------- ggplot(axial_orientations, aes(x = orientation, fill = group)) + geom_rose(bins = 18, axial = TRUE) + scale_x_circular_degrees(limits = c(0, pi)) + coord_circular() + theme_rose()