-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathhmAxis.Rd
61 lines (50 loc) · 1.56 KB
/
hmAxis.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hmAxis.R
\name{hmAxis}
\alias{hmAxis}
\title{Modify axis options}
\source{
The interface was inspired by \cite{dygraphs}
}
\usage{
hmAxis(
d3heatmap,
axis = c("x", "y", "row", "column"),
size,
labels,
font.size,
angle,
location,
title,
title.font.size
)
}
\arguments{
\item{d3heatmap}{a d3heatmap object created from the d3heatmap()}
\item{axis}{Name of the axis to modify; either "x", "y", "row", or "column"}
\item{size}{Size of axes, in pixels.}
\item{labels}{character vectors with axis labels to use (top to bottom for y axis, left to right for x); default to rownames(x) or colnames(x).}
\item{font.size}{integer Font size of axis labels, in pixels (i.e., will be translated to a
character string with 'px' appended)}
\item{angle}{Angle of x axis labels (x axis only). Defaults to 60. Maximum of 90 (vertical), minimum of 25.}
\item{location}{Location of the axis, either "bottom" or "top" for the x axis, and
either "right" or "left" for the y axis. Defaults to "bottom" and "right".}
\item{title}{Title text}
\item{title.font.size}{Font size of axis title in pixels. Defaults to 14.}
}
\value{
Modified d3heatmap object
}
\description{
Provides options for modifying the x and y axes of a D3 Heatmap widget
}
\examples{
\dontrun{
d3heatmap(mtcars, scale = "column", col = "Blues") \%>\%
hmAxis("x", angle = 30, title = "test", location = 'top', font.size = '24px') \%>\%
hmAxis("y", title = "test", location = 'right')
}
}
\seealso{
\link{heatmap}, \link[gplots]{heatmap.2}
}