Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quicklizard99/Homeric
Doughnut plots for R
https://github.com/quicklizard99/Homeric
Last synced: 3 months ago
JSON representation
Doughnut plots for R
- Host: GitHub
- URL: https://github.com/quicklizard99/Homeric
- Owner: quicklizard99
- Created: 2015-04-27T13:10:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T12:04:27.000Z (over 7 years ago)
- Last Synced: 2024-05-21T02:55:25.325Z (6 months ago)
- Language: R
- Size: 77.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Homeric
![Zenodo DOI badge](https://zenodo.org/badge/doi/10.5281/zenodo.57065.svg)
![Total number of downloads from CRAN](https://cranlogs.r-pkg.org/badges/grand-total/Homeric)Doughnut plots for R.
Homeric is on CRAN. To install the latest release: `install.packages('Homeric')`.
```{r}
library(Homeric)
v <- runif(5)
names(v) <- LETTERS[1:length(v)]
par(mfrow=c(2, 3), mar=c(0, 0, 0, 0), oma=c(0, 0, 5, 0))
PlotDoughnut(v, centre.text='Doughnut', centre.cex=1.8, labels.cex=2)
PlotDoughnut(v, centre.text='Counter-clockwise', centre.cex=1.8, labels.cex=2,
clockwise=FALSE)
PlotDoughnut(v, centre.text=~Origin~at~90^o, centre.cex=1.8, labels.cex=2,
origin.degrees=90)
PlotDoughnut(v, centre.text='Half nut', centre.cex=1.8, labels.cex=2, to.degrees=180,
origin=-90)
PlotDoughnut(v, centre.text='Side nut', centre.cex=1.8, labels.cex=2, to.degrees=180,
origin=0)
PlotDoughnut(v, centre.text='Taken a bite', centre.cex=1.8, labels.cex=2,
to.degrees=270, origin=-45, clockwise=FALSE)
title(main='You doughnut', outer=TRUE, cex.main=3)
```![Example doughnut plot](../screenshots/doughnut1.png?raw=true)