ggcolors: ggcolors

Description Usage Arguments Details Value Examples

Description

Get the colors that ggplot2 uses by default. This code is not totally written by the author; he adapted it from someplace on the web.

Usage

1

Arguments

n

The number of colors you want (equally spaced along the color wheel)

Details

I made this into a function because I was tired of copying it into all my code.

Value

A vector of colors is returned.

Examples

1
2
ggcolors(3)
ggcolors(6) # overlaps the ggcolors(3) call

eheinzen/Ethan documentation built on May 3, 2019, 4:32 p.m.