forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDiscretePalette.Rd
34 lines (30 loc) · 983 Bytes
/
DiscretePalette.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{DiscretePalette}
\alias{DiscretePalette}
\title{Discrete colour palettes from the pals package}
\usage{
DiscretePalette(n, palette = NULL)
}
\arguments{
\item{n}{Number of colours to be generated.}
\item{palette}{Options are
"alphabet", "alphabet2", "glasbey", "polychrome", and "stepped".
Can be omitted and the function will use the one based on the requested n.}
}
\value{
A vector of colors
}
\description{
These are included here because pals depends on a number of compiled
packages, and this can lead to increases in run time for Travis,
and generally should be avoided when possible.
}
\details{
These palettes are a much better default for data with many classes
than the default ggplot2 palette.
Many thanks to Kevin Wright for writing the pals package.
Taken from the pals package (Licence: GPL-3).
\url{https://cran.r-project.org/package=pals}
Credit: Kevin Wright
}