knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

packageName

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.

Installation

You can install the development version of ggpalette from GitHub with:

remotes::install_github("yuwei217/ggpalette")

Example

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

```



yuwei217/ggpalette documentation built on Dec. 23, 2021, 8:21 p.m.