The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.
This vignette is intended to demonstrate the functionality of
scale_duke_fill_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(palmerpenguins::penguins, aes(x = species, fill = species)) +
plot geom_bar() +
labs(title = "Distribution of Species", caption = "(Colors used) \n Duke Royal Blue, Duke Navy Blue, Copper", x = "Species", y = "Count")
+
plot scale_duke_fill_discrete()
<- ggplot(palmerpenguins::penguins, aes(x = bill_length_mm)) +
plot2 geom_histogram(aes(fill = species)) +
labs(title = "Distribution of Bill Length", caption = "(Colors used) \n Duke Royal Blue, Duke Navy Blue, Copper", x = "Bill Length (mm)", y = "Count")
+
plot2 scale_duke_fill_discrete()
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
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.
Health stats visible at Monitor.