# ggside **Repository Path**: tidyfriday/ggside ## Basic Information - **Project Name**: ggside - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-01 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README README ================ Justin Landis 7/21/2020 # ggside [![Travis build status](https://travis-ci.org/jtlandis/ggside.svg?branch=master)](https://travis-ci.org/jtlandis/ggside) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version-ago/ggside)](https://cran.r-project.org/package=ggside) [![CRAN\_Download\_Badge](http://cranlogs.r-pkg.org/badges/ggside)](https://cran.r-project.org/package=ggside) ## Overview The R package ggside expands on the ggplot2 package. This package allows the user to add graphical information about one of the main panel’s axis. This is particularly useful for metadata for discrete axis, or summary graphics on a continuous axis such as a boxplot or a density distribution. ## Installation Please install from CRAN for the latest stable version of `ggside`. You can also install from the Github as seen below. ``` r #CRAN utils::install.packages("ggside") #Github devtools::install_github("jtlandis/ggside") ``` ## Usage Using this package is similar to adding any additional layer to a ggplot. All geometries supported by ggside follow a pattern like `geom_xside*` or `geom_yside*` which will add that geometry to either the x side panel or the y side panel respectively. If you add `geom_xsidedensity` to a plot, then this places a density geometry in its own panel that is positioned by default above the main panel. This panel will share the same x axis of the main panel but will have an independent y axis. Take the following example from the ggplot2 readme. ``` r library(ggplot2) library(ggside) #> Registered S3 method overwritten by 'ggside': #> method from #> +.gg ggplot2 ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point(size = 2) + geom_xsidedensity(aes(y = after_stat(density)), position = "stack") + geom_ysidedensity(aes(x = after_stat(density)), position = "stack") + theme(axis.text.x = element_text(angle = 90, vjust = .5)) ``` ![](man/figures/README-example-1.png) For a more detailed guide please see `vignette('ggside_basic_usage')` for more information. ## Issues and Bug Reporting If you find any issues or want to suggest an enhancement, please make a post at [jtlandis/ggside](https://github.com/jtlandis/ggside/issues).