Package: ggpyramid 0.1.0
ggpyramid: Population Pyramids with 'ggplot2'
Build population pyramids, the back-to-back bar charts of a population by age group and sex, as layers of a 'ggplot2' plot. A position adjustment mirrors one side and stacks subgroups within each side, so bars, labels and lines from any layer land on the correct side while the plot can still be faceted, themed and extended as usual. A coordinate system labels both sides with absolute values, gives them one shared scale, and places the age axis on either side or in a gap at the centre. Further layers count individual records or sum aggregated values, show proportions, label the bars, and draw a second population as a stepped outline for comparison.
Authors:
ggpyramid_0.1.0.tar.gz
ggpyramid_0.1.0.zip(r-4.7-any)ggpyramid_0.1.0.zip(r-4.6-any)
ggpyramid_0.1.0.tar.gz(r-4.7-any)ggpyramid_0.1.0.tar.gz(r-4.6-any)
ggpyramid_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ggpyramid/json (API)
| # Install 'ggpyramid' in R: |
| install.packages('ggpyramid', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/matanhakim/ggpyramid/issues
Pkgdown/docs site:https://matanhakim.github.io
- europe_pop - Population of four European countries by age group and sex
Last updated from:5d85f15ef0. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 122 | ||
| source / vignettes | OK | 233 | ||
| linux-release | OK | 127 | ||
| windows-devel | OK | 93 | ||
| windows-release | OK | 102 | ||
| wasm-release | OK | 103 |
Exports:coord_pyramidCoordPyramidgeom_pyramidgeom_pyramid_outlinegeom_pyramid_textGeomPyramidOutlineGeomPyramidTextposition_pyramidPositionPyramidscale_x_pyramidscale_y_pyramidstat_pyramidStatPyramidtheme_pyramid
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Cartesian coordinates for a population pyramid | coord_pyramid |
| Population of four European countries by age group and sex | europe_pop |
| Bars of a population pyramid | geom_pyramid stat_pyramid |
| A stepped outline of a population pyramid | geom_pyramid_outline |
| Value labels on a population pyramid | geom_pyramid_text |
| Mirror one side of a population pyramid | position_pyramid |
| Position scales for the value axis of a pyramid | scale_x_pyramid scale_y_pyramid |
| A theme for population pyramids | theme_pyramid |
