The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This vignette is intended to demonstrate the functionality of
scale_duke_color_discrete()
. The function allows users to
utilize a discrete color scale of Duke official branding colors on
ggplot2 visualizations. It is fully integrated with ggplot2
visualizations.
For these visualizations, we will use the penguins
dataset from the palmerpenguins package.
library(palmerpenguins)
library(duke)
library(ggplot2)
library(ggmosaic)
<- ggplot(penguins, aes(x = bill_length_mm, y = bill_depth_mm)) +
plot geom_point(aes(color = species)) +
labs(
title = "Bill Length vs. Bill Depth",
caption = "(Colors used) \n Duke Royal Blue, Duke Navy Blue, Copper",
x = "Bill Length (mm)",
y = "Bill Depth (mm)"
)
+
plot scale_duke_color_discrete()
<- ggplot(penguins, aes(x = island, y = bill_depth_mm)) +
plot geom_jitter(aes(color = species)) +
labs(
title = "Bill Length vs. Bill Depth",
caption = "(Colors used) \n Duke Royal Blue, Duke Navy Blue, Copper",
x = "Bill Length (mm)",
y = "Bill Depth (mm)"
)
+
plot scale_duke_color_discrete()
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.