gggda

ggplot2 extension for multivariable data visualizations, spun off from ordr

https://github.com/corybrunson/gggda

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

data-visualization dimension-reduction geometric-data-analysis ggplot2 grammar-of-graphics multivariate-analysis
Last synced: 6 months ago · JSON representation

Repository

ggplot2 extension for multivariable data visualizations, spun off from ordr

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 12
  • Releases: 1
Topics
data-visualization dimension-reduction geometric-data-analysis ggplot2 grammar-of-graphics multivariate-analysis
Created about 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.md

gggda

Lifecycle:
experimental CRAN <!-- badges: end -->

{gggda} extends {ggplot2} with coordinate systems, statistical transformations, and geometric constructions useful to the analysis and visualization of multivariate data, including bivariate generalizations of univariate tools and tools designed for geometric data analysis and ordination. It is spun off from and designed to interoperate with {ordr}.

usage

installation

{gggda} is now on CRAN and can be installed in the standard way:

r install.packages("gggda")

Or install the development version as follows using {pak}:

r pak::pkg_install("corybrunson/gggda")

illustration

Use the new coordinate system to fix the aspect ratio of the plotting window as well as of the coordinates:

``` r

rectangular window (custom aspect ratio)

ggplot(mpg, aes(x = displ, y = hwy)) + coordrect(ratio = .1, windowratio = 1/2) + geom_point() ```

<!-- -->

``` r

square window (unit aspect ratio)

ggplot(mpg, aes(x = cty, y = hwy)) + coordsquare(xlim = c(0, NA), ylim = c(0, NA)) + geompoint() ```

<!-- -->

Some new statistical transformations provide new ways of analyzing bivariate data, for example the depth stat that deploys the {ddalpha} package and mimics the density stat by pairing with the contour geom:

``` r

depth medians and quartiles contours by group

ggplot(mpg, aes(displ, cty, color = drv, fill = drv)) + statdepth(bins = 4) + statcenter(fun.ord = depth_median) ```

<!-- -->

Several new geometric constructions have a wide range of uses, including biplots, with two-dimensional errorbars being an underused example:

``` r

centroids with 2-standard deviation bars for both variables

ggplot(mpg, aes(displ, cty, color = factor(cyl))) + geompoint() + geompointranges(fun.data = mean_sdl) ```

<!-- -->

Finally, some stats and geoms are designed to work as pairs, most notably the bagplot layer modeled on the boxplot in {ggplot2}:

``` r

faceted bagplots

ggplot(mpg, aes(displ, hwy, color = drv, fill = drv)) + facetwrap(vars(drv)) + statbagplot() ```

<!-- -->

acknowledgments

contribute

Any feedback on the package is very welcome! If you encounter confusion or errors, do create an issue, with a minimal reproducible example if feasible. If you have requests, suggestions, or your own implementations for new features, feel free to create an issue or submit a pull request. Please try to follow the contributing guidelines and respect the Code of Conduct.

resources

Development of this package benefitted from the use of equipment and the support of colleagues at UConn Health and at the University of Florida. See the {ordr} repo for detailed acknowledgments.

Owner

  • Name: Cory Brunson
  • Login: corybrunson
  • Kind: user
  • Location: Gainesville, FL
  • Company: @LaboratoryForSystemsMedicine

Mathematician by training, data scientist by testing. Relatively new to pretty much everything.

GitHub Events

Total
  • Issues event: 12
  • Watch event: 1
  • Delete event: 3
  • Issue comment event: 11
  • Push event: 37
  • Create event: 7
Last Year
  • Issues event: 12
  • Watch event: 1
  • Delete event: 3
  • Issue comment event: 11
  • Push event: 37
  • Create event: 7

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 14
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 0.57
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • corybrunson (13)
  • friendly (1)
Pull Request Authors
Top Labels
Issue Labels
enhancement (2) help wanted (1) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 521 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: gggda

A 'ggplot2' Extension for Geometric Data Analysis

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 521 Last month
Rankings
Dependent packages count: 26.0%
Dependent repos count: 32.0%
Average: 48.0%
Downloads: 86.0%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.3.0 depends
  • ggplot2 * depends
  • labeling * imports
  • rlang * imports
  • tibble * imports
  • MASS * suggests
  • ddalpha * suggests
  • gridExtra * suggests
  • knitr * suggests
  • mlpack * suggests
  • rmarkdown * suggests
  • sessioninfo * suggests
  • testthat * suggests