knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of packageName is to defnes a custom colour palette and enable the palettes to be used as both a discrete and continuous scale in ggplot2.
You can install the development version of ggpalette from GitHub with:
remotes::install_github("yuwei217/ggpalette")
This is a basic example which shows you how to solve a common problem:
library(ggpalette) library(palmerpenguins) library(ggplot2) p1 <- ggplot(penguins, aes(bill_length_mm, bill_depth_mm, color = sex)) + geom_point(size = 2) + scale_colour_ggpalette_d() + theme_bw() p1
```
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.