-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathhmOptions.Rd
68 lines (57 loc) · 1.84 KB
/
hmOptions.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmOptions.R
\name{hmOptions}
\alias{hmOptions}
\title{Modify d3heatmap options}
\source{
The interface was inspired by \cite{dygraphs}
}
\usage{
hmOptions(
d3heatmap,
title,
scale = c("none", "row", "column"),
scale.by.range,
na.rm,
na.value,
show.grid,
animation.duration,
reverse.columns
)
}
\arguments{
\item{d3heatmap}{a d3heatmap object created from the d3heatmap()}
\item{title}{\emph{string} Plot title. Defaults to \code{NULL}.}
\item{scale}{character indicating if the values should be centered and scaled in either
the row direction or the column direction, or none. The default is "none".}
\item{scale.by.range}{logical indicating whether to scale rows or columns by
the range of each row and column. Setting this parameter to \code{TRUE}
automatically sets \code{na.rm} to \code{TRUE}}
\item{na.rm}{logical indicating whether NA's should be removed.}
\item{na.value}{numeric indicating where NA's should be substituted to trigger the NA color.}
\item{show.grid}{\code{TRUE} to show gridlines, \code{FALSE} to hide them,
or a numeric value to specify the gridline thickness in pixels (can
be a non-integer).}
\item{animation.duration}{Number of milliseconds to animate zooming in and
out. For large \code{x} it may help performance to set this value to
\code{0}.}
\item{reverse.columns}{logical indicating if the column order should be
reversed for plotting. Default (when missing) - is FALSE, unless symmetrical
is TRUE... useful for correlation matrices.}
}
\value{
Modified d3heatmap object
}
\description{
Change options for a d3heatmap
}
\examples{
\dontrun{
d3heatmap(mtcars, scale = "column", col = "Blues") \%>\%
hmOptions(scale.by.range = TRUE, show.grid = FALSE,
animation.duration = 400)
}
}
\seealso{
\link{heatmap}, \link[gplots]{heatmap.2}
}