ggfoundry ggfoundry website

Lifecycle: experimental Codecov test coverage R-CMD-check CRAN status

Arbitrary hand-crafted fillable shapes for ggplot2.

New shapes may be feature requested via a Github issue.

Installation

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.

# install.packages("devtools")
devtools::install_github("cgoo4/ggfoundry")

Basic example

See get started for more details.

library(ggfoundry)
#> Loading required package: ggplot2

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()