File: color_bar.Rd

package info (click to toggle)
r-cran-formattable 0.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 420 kB
  • sloc: javascript: 15; sh: 12; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatter.R
\name{color_bar}
\alias{color_bar}
\title{Create a color-bar formatter}
\usage{
color_bar(color = "lightgray", fun = "proportion", ...)
}
\arguments{
\item{color}{the background color of the bars}

\item{fun}{the transform function that maps the input vector to
values from 0 to 1. Uses \code{proportion} by default.}

\item{...}{additional parameters passed to \code{fun}}
}
\description{
Create a color-bar formatter
}
\examples{
formattable(mtcars, list(mpg = color_bar("lightgray", proportion)))
}
\seealso{
\link{normalize_bar}, \link{proportion_bar}
}