car_color_palettes: Palette of Car Colors

car_color_palettesR Documentation

Palette of Car Colors

Description

This function includes color palettes of car companies that previous decades. More color palettes will be added in the future.

Usage

car_color_palettes

Arguments

name

Name of the color palette. datsun1 has 7 distinct colors from the Datsun motor company. datsun2 has 5 distinct colors and datsun3 has four colors.

n

The amount of colors desired for your plot.

Format

An object of class list of length 3.

Value

A vector of colors.

Examples


car_color("datsun1", 4)
car_color("datsun2")

library(tidyverse)
mtcars %>%
ggplot(aes(hp, mpg)) +
geom_point(aes(color = as.factor(cyl))) +
scale_color_manual(values = car_color("datsun1"))

jpedroza1228/reg.diagnostics documentation built on June 15, 2022, 9:30 p.m.