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'
- Host: GitHub
- URL: https://cgoo4.github.io/ggfoundry/
- Owner: cgoo4
- License: other
- Created: 2024-05-22T10:17:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-09T11:08:41.000Z (over 1 year ago)
- Last Synced: 2025-10-17T05:16:39.005Z (about 2 months ago)
- Topics: ggplot, ggplot-extension, ggplot2, ggplot2-geom, r, r-package, shapes, visualisation, visualization
- Language: R
- Homepage: https://cgoo4.github.io/ggfoundry/
- Size: 27.9 MB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ggplot2 - ggfoundry
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://app.codecov.io/gh/cgoo4/ggfoundry?branch=main)
[](https://github.com/cgoo4/ggfoundry/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=ggfoundry)
[](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()
```
