Learn R Programming

ggfoundry

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("pak")
pak::pak("cgoo4/ggfoundry")

Basic example

See the get started vignette and supporting package-website articles for more details, including available shapes, a showcase of examples and how ggfoundry contrasts with alternative strategies.

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

Copy Link

Version

Install

install.packages('ggfoundry')

Monthly Downloads

193

Version

0.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Carl Goodwin

Last Published

July 6th, 2024

Functions in ggfoundry (0.3.1)

ggfoundry-package

ggfoundry: Shape Foundry & Geom for 'ggplot2'
display_palette

Display a palette using fillable shapes
shapes_cast

Get the names of available shapes
geom_casting

Arbitrary hand-crafted fillable shapes for ggplot2