-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathplot_label.Rd
70 lines (53 loc) · 1.59 KB
/
plot_label.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
69
70
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotlib.R
\name{plot_label}
\alias{plot_label}
\title{Attach label to \code{ggplot2::ggplot}}
\usage{
plot_label(
p,
data,
x = NULL,
y = NULL,
label = TRUE,
label.label = "rownames",
label.colour = NULL,
label.alpha = NULL,
label.size = NULL,
label.angle = NULL,
label.family = NULL,
label.fontface = NULL,
label.lineheight = NULL,
label.hjust = NULL,
label.vjust = NULL,
label.repel = FALSE,
label.show.legend = NA,
label.position = "identity"
)
}
\arguments{
\item{p}{\code{ggplot2::ggplot} instance}
\item{data}{Data contains text label}
\item{x}{x coordinates for label}
\item{y}{y coordinates for label}
\item{label}{Logical value whether to display labels}
\item{label.label}{Column name used for label text}
\item{label.colour}{Colour for text labels}
\item{label.alpha}{Alpha for text labels}
\item{label.size}{Size for text labels}
\item{label.angle}{Angle for text labels}
\item{label.family}{Font family for text labels}
\item{label.fontface}{Fontface for text labels}
\item{label.lineheight}{Lineheight for text labels}
\item{label.hjust}{Horizontal adjustment for text labels}
\item{label.vjust}{Vertical adjustment for text labels}
\item{label.repel}{Logical flag indicating whether to use \code{ggrepel}, enabling this may take some time for plotting}
\item{label.show.legend}{Logical value indicating whether to show the legend of the text labels}
\item{label.position}{Character or a position function}
}
\value{
ggplot
}
\description{
Attach label to \code{ggplot2::ggplot}
}