An open API service indexing awesome lists of open source software.

https://cgoo4.github.io/ggfoundry/

Shape Foundry & Geom for 'ggplot2'
https://cgoo4.github.io/ggfoundry/

ggplot ggplot-extension ggplot2 ggplot2-geom r r-package shapes visualisation visualization

Last synced: 13 days ago
JSON representation

Shape Foundry & Geom for 'ggplot2'

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# ggfoundry ggfoundry website

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![Codecov test coverage](https://codecov.io/gh/cgoo4/ggfoundry/branch/main/graph/badge.svg)](https://app.codecov.io/gh/cgoo4/ggfoundry?branch=main)
[![R-CMD-check](https://github.com/cgoo4/ggfoundry/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/cgoo4/ggfoundry/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/ggfoundry)](https://CRAN.R-project.org/package=ggfoundry)
[![DOI](https://img.shields.io/badge/doi-10.32614/CRAN.package.ggfoundry-skyblue.svg)](https://doi.org/10.32614/CRAN.package.ggfoundry)

Arbitrary hand-crafted fillable shapes for ggplot2.

New shapes may be feature requested via a [Github issue](https://github.com/cgoo4/ggfoundry/issues).

## Installation

``` r
install.packages("ggfoundry")
```

## Development version

To get a bug fix, or to use a feature from the development version, you can install ggfoundry from GitHub.

``` r
# install.packages("pak")
pak::pak("cgoo4/ggfoundry")
```

## Basic example

See the [get started](https://cgoo4.github.io/ggfoundry/articles/ggfoundry.html) vignette and supporting package-website articles for more details, including available shapes, a showcase of examples and how ggfoundry contrasts with alternative strategies.

```{r example, fig.retina=3}
library(ggfoundry)

ggplot(mtcars, aes(wt, mpg, fill = factor(cyl))) +
geom_casting(aes(shape = factor(cyl))) +
scale_fill_manual(values = c("skyblue", "lightgreen", "pink")) +
scale_shape_manual(values = c("violin", "dendro", "box")) +
theme_bw()
```