Browse code

update man files and fixed R check

Guangchuang Yu authored on 23/03/2022 04:13:34
Showing 1 changed files
... ...
@@ -23,36 +23,36 @@ geom_label2(
23 23
 )
24 24
 }
25 25
 \arguments{
26
-\item{mapping}{the aesthetic mapping}
26
+\item{mapping}{Set of aesthetic mappings, defaults to NULL.}
27 27
 
28 28
 \item{data}{A layer specific dataset -
29 29
 only needed if you want to override the plot defaults.}
30 30
 
31
-\item{...}{other arguments passed on to 'layer'}
31
+\item{...}{other arguments passed on to 'layer'.}
32 32
 
33
-\item{stat}{Name of stat to modify data}
33
+\item{stat}{Name of the stat to modify data.}
34 34
 
35
-\item{position}{The position adjustment to use for overlapping points on this layer}
35
+\item{position}{The position adjustment to use for overlapping points on this layer.}
36 36
 
37
-\item{family}{sans by default, can be any supported font}
37
+\item{family}{"sans" by default, can be any supported font.}
38 38
 
39
-\item{parse}{if TRUE, the labels will be parsed as expressions}
39
+\item{parse}{if 'TRUE', the labels will be parsed as expressions, defaults to 'FALSE'.}
40 40
 
41
-\item{nudge_x}{horizontal adjustment}
41
+\item{nudge_x}{adjust the horizontal position of the labels.}
42 42
 
43
-\item{nudge_y}{vertical adjustment}
43
+\item{nudge_y}{adjust the vertical position of the labels.}
44 44
 
45
-\item{label.padding}{Amount of padding around label.}
45
+\item{label.padding}{Amount of padding around label, defaults to 'unit(0.25, "lines")'.}
46 46
 
47
-\item{label.r}{Radius of rounded corners.}
47
+\item{label.r}{Use to set the radius of rounded corners of the label, defaults to 'unit(0.15, "lines")'.}
48 48
 
49
-\item{label.size}{Size of label border, in mm}
49
+\item{label.size}{Size of label border, in mm, defaults to 0.25.}
50 50
 
51
-\item{na.rm}{logical}
51
+\item{na.rm}{If "FALSE" (default), missing values are removed with a warning. If "TRUE", missing values are silently removed, logical.}
52 52
 
53
-\item{show.legend}{logical}
53
+\item{show.legend}{Whether to show legend, logical, defaults to "NA".}
54 54
 
55
-\item{inherit.aes}{logical}
55
+\item{inherit.aes}{Whether to inherit aesthetic mappings, logical, defaults to "TRUE".}
56 56
 }
57 57
 \value{
58 58
 label layer
... ...
@@ -60,6 +60,21 @@ label layer
60 60
 \description{
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63
+\details{
64
+'geom_label2' is a modified version of geom_label, with subset aesthetic supported
65
+}
66
+\examples{
67
+library(ggtree)
68
+set.seed(123)
69
+tr<- rtree(15)
70
+x <- ggtree(tr)
71
+x + geom_label2(aes(label = node, subset = isTip == FALSE))
72
+}
73
+\references{
74
+For more detailed demonstration of this function, please refer to chapter A.4.5 of
75
+\emph{Data Integration, Manipulation and Visualization of Phylogenetic Trees}
76
+\url{http://yulab-smu.top/treedata-book/index.html} by Guangchuang Yu.
77
+}
63 78
 \seealso{
64 79
 \link[ggplot2:geom_text]{geom_label}
65 80
 }
Browse code

update docs

Guangchuang Yu authored on 03/09/2020 02:53:24
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ label layer
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63 63
 \seealso{
64
-\link[ggplot2:geom_label]{geom_label}
64
+\link[ggplot2:geom_text]{geom_label}
65 65
 }
66 66
 \author{
67 67
 Guangchuang Yu
Browse code

update docs

Guangchuang Yu authored on 02/09/2020 14:41:30
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ label layer
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63 63
 \seealso{
64
-\link[ggplot2:geom_text]{geom_label}
64
+\link[ggplot2:geom_label]{geom_label}
65 65
 }
66 66
 \author{
67 67
 Guangchuang Yu
Browse code

update docs

Guangchuang Yu authored on 16/07/2020 10:06:20
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ label layer
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63 63
 \seealso{
64
-\link[ggplot2:geom_label]{geom_label}
64
+\link[ggplot2:geom_text]{geom_label}
65 65
 }
66 66
 \author{
67 67
 Guangchuang Yu
Browse code

update docs

Guangchuang Yu authored on 16/07/2020 01:51:43
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ label layer
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63 63
 \seealso{
64
-\link[ggplot2:geom_text]{geom_label}
64
+\link[ggplot2:geom_label]{geom_label}
65 65
 }
66 66
 \author{
67 67
 Guangchuang Yu
Browse code

update rd, ggplot2 is 3.2.2 and roxygen2 is 7.1.1

xiangpin authored on 13/07/2020 03:00:16
Showing 1 changed files
... ...
@@ -61,7 +61,7 @@ label layer
61 61
 geom_label2 support aes(subset) via setup_data
62 62
 }
63 63
 \seealso{
64
-\link[ggplot2:geom_label]{geom_label}
64
+\link[ggplot2:geom_text]{geom_label}
65 65
 }
66 66
 \author{
67 67
 Guangchuang Yu
Browse code

clip="off" and update docs

Guangchuang Yu authored on 06/12/2019 03:01:17
Showing 1 changed files
... ...
@@ -4,11 +4,23 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_label2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., stat = "identity",
8
-  position = "identity", family = "sans", parse = FALSE,
9
-  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
10
-  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
11
-  show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(
8
+  mapping = NULL,
9
+  data = NULL,
10
+  ...,
11
+  stat = "identity",
12
+  position = "identity",
13
+  family = "sans",
14
+  parse = FALSE,
15
+  nudge_x = 0,
16
+  nudge_y = 0,
17
+  label.padding = unit(0.25, "lines"),
18
+  label.r = unit(0.15, "lines"),
19
+  label.size = 0.25,
20
+  na.rm = TRUE,
21
+  show.legend = NA,
22
+  inherit.aes = TRUE
23
+)
12 24
 }
13 25
 \arguments{
14 26
 \item{mapping}{the aesthetic mapping}
Browse code

roxygen2md

Guangchuang Yu authored on 01/11/2019 04:24:00
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@ label layer
49 49
 geom_label2 support aes(subset) via setup_data
50 50
 }
51 51
 \seealso{
52
-\link[ggplot2]{geom_label}
52
+\link[ggplot2:geom_label]{geom_label}
53 53
 }
54 54
 \author{
55 55
 Guangchuang Yu
Browse code

Fix typo

Hugo Gruson authored on 26/06/2019 13:03:46
Showing 1 changed files
... ...
@@ -24,7 +24,7 @@ only needed if you want to override the plot defaults.}
24 24
 
25 25
 \item{family}{sans by default, can be any supported font}
26 26
 
27
-\item{parse}{if TRUE, the labels will be passd into expressions}
27
+\item{parse}{if TRUE, the labels will be parsed as expressions}
28 28
 
29 29
 \item{nudge_x}{horizontal adjustment}
30 30
 
Browse code

bug fixed of viewClade

Guangchuang Yu authored on 07/08/2018 12:07:15
Showing 1 changed files
... ...
@@ -5,10 +5,10 @@
5 5
 \title{geom_label2}
6 6
 \usage{
7 7
 geom_label2(mapping = NULL, data = NULL, ..., stat = "identity",
8
-  position = "identity", family = "sans", parse = FALSE, nudge_x = 0,
9
-  nudge_y = 0, label.padding = unit(0.25, "lines"), label.r = unit(0.15,
10
-  "lines"), label.size = 0.25, na.rm = TRUE, show.legend = NA,
11
-  inherit.aes = TRUE)
8
+  position = "identity", family = "sans", parse = FALSE,
9
+  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
10
+  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
11
+  show.legend = NA, inherit.aes = TRUE)
12 12
 }
13 13
 \arguments{
14 14
 \item{mapping}{the aesthetic mapping}
Browse code

Merged changes from upstream into origin branches.

Merge remote-tracking branch 'upstream/master'

# Conflicts:
# R/geom_cladelabel.R
# R/geom_hilight.R

JustGitting authored on 12/09/2017 01:52:08
Showing 0 changed files
Browse code

geom_motif #148

guangchuang yu authored on 22/08/2017 08:22:37
Showing 1 changed files
... ...
@@ -48,10 +48,9 @@ label layer
48 48
 \description{
49 49
 geom_label2 support aes(subset) via setup_data
50 50
 }
51
-\author{
52
-Guangchuang Yu
53
-}
54 51
 \seealso{
55 52
 \link[ggplot2]{geom_label}
56 53
 }
57
-
54
+\author{
55
+Guangchuang Yu
56
+}
Browse code

update docs

guangchuang yu authored on 16/08/2017 02:36:13
Showing 1 changed files
... ...
@@ -48,9 +48,10 @@ label layer
48 48
 \description{
49 49
 geom_label2 support aes(subset) via setup_data
50 50
 }
51
-\seealso{
52
-\link[ggplot2]{geom_label}
53
-}
54 51
 \author{
55 52
 Guangchuang Yu
56 53
 }
54
+\seealso{
55
+\link[ggplot2]{geom_label}
56
+}
57
+
Browse code

now geom_text2, geom_label2, geom_point2 and geom_segment2 work with ggplot2

guangchuang yu authored on 01/08/2017 12:22:46
Showing 1 changed files
... ...
@@ -4,10 +4,11 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_label2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., position = "identity",
8
-  family = "sans", parse = FALSE, nudge_x = 0, nudge_y = 0,
9
-  label.padding = unit(0.25, "lines"), label.r = unit(0.15, "lines"),
10
-  label.size = 0.25, na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(mapping = NULL, data = NULL, ..., stat = "identity",
8
+  position = "identity", family = "sans", parse = FALSE, nudge_x = 0,
9
+  nudge_y = 0, label.padding = unit(0.25, "lines"), label.r = unit(0.15,
10
+  "lines"), label.size = 0.25, na.rm = TRUE, show.legend = NA,
11
+  inherit.aes = TRUE)
11 12
 }
12 13
 \arguments{
13 14
 \item{mapping}{the aesthetic mapping}
... ...
@@ -17,6 +18,8 @@ only needed if you want to override he plot defaults.}
17 18
 
18 19
 \item{...}{other arguments passed on to 'layer'}
19 20
 
21
+\item{stat}{Name of stat to modify data}
22
+
20 23
 \item{position}{The position adjustment to use for overlapping points on this layer}
21 24
 
22 25
 \item{family}{sans by default, can be any supported font}
Browse code

add extend parameter in geom_cladelabel

guangchuang yu authored on 26/07/2017 02:13:53
Showing 1 changed files
... ...
@@ -45,10 +45,9 @@ label layer
45 45
 \description{
46 46
 geom_label2 support aes(subset) via setup_data
47 47
 }
48
-\author{
49
-Guangchuang Yu
50
-}
51 48
 \seealso{
52 49
 \link[ggplot2]{geom_label}
53 50
 }
54
-
51
+\author{
52
+Guangchuang Yu
53
+}
Browse code

Added revised geom_hilight_encircle() function to highlight clades of unrooted trees.

Fixed layoutDaylight ave_change calculation.

Fixed bug in getTreeArcAngles() for cases where the branch root node and origin node are the same.

Added getNodeEuclDistances() function.

Fixed isTip() function to check if nodes has children, instead of checking of the data variable had the isTip field set.

JustGitting authored on 29/06/2017 03:43:04
Showing 1 changed files
... ...
@@ -13,7 +13,7 @@ geom_label2(mapping = NULL, data = NULL, ..., position = "identity",
13 13
 \item{mapping}{the aesthetic mapping}
14 14
 
15 15
 \item{data}{A layer specific dataset -
16
-only needed if you want to override he plot defaults.}
16
+only needed if you want to override the plot defaults.}
17 17
 
18 18
 \item{...}{other arguments passed on to 'layer'}
19 19
 
... ...
@@ -45,10 +45,9 @@ label layer
45 45
 \description{
46 46
 geom_label2 support aes(subset) via setup_data
47 47
 }
48
-\author{
49
-Guangchuang Yu
50
-}
51 48
 \seealso{
52 49
 \link[ggplot2]{geom_label}
53 50
 }
54
-
51
+\author{
52
+Guangchuang Yu
53
+}
Browse code

fixed geom_tiplab(geom="label")

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@127093 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 02/03/2017 03:05:18
Showing 1 changed files
... ...
@@ -4,10 +4,10 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_label2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8
-  parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
9
-  "lines"), label.r = unit(0.15, "lines"), label.size = 0.25,
10
-  na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(mapping = NULL, data = NULL, ..., position = "identity",
8
+  family = "sans", parse = FALSE, nudge_x = 0, nudge_y = 0,
9
+  label.padding = unit(0.25, "lines"), label.r = unit(0.15, "lines"),
10
+  label.size = 0.25, na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
11 11
 }
12 12
 \arguments{
13 13
 \item{mapping}{the aesthetic mapping}
... ...
@@ -17,6 +17,8 @@ only needed if you want to override he plot defaults.}
17 17
 
18 18
 \item{...}{other arguments passed on to 'layer'}
19 19
 
20
+\item{position}{The position adjustment to use for overlapping points on this layer}
21
+
20 22
 \item{family}{sans by default, can be any supported font}
21 23
 
22 24
 \item{parse}{if TRUE, the labels will be passd into expressions}
Browse code

fixed #115

guangchuang yu authored on 02/03/2017 02:49:53
Showing 1 changed files
... ...
@@ -4,10 +4,10 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_label2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8
-  parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
9
-  "lines"), label.r = unit(0.15, "lines"), label.size = 0.25,
10
-  na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(mapping = NULL, data = NULL, ..., position = "identity",
8
+  family = "sans", parse = FALSE, nudge_x = 0, nudge_y = 0,
9
+  label.padding = unit(0.25, "lines"), label.r = unit(0.15, "lines"),
10
+  label.size = 0.25, na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
11 11
 }
12 12
 \arguments{
13 13
 \item{mapping}{the aesthetic mapping}
... ...
@@ -17,6 +17,8 @@ only needed if you want to override he plot defaults.}
17 17
 
18 18
 \item{...}{other arguments passed on to 'layer'}
19 19
 
20
+\item{position}{The position adjustment to use for overlapping points on this layer}
21
+
20 22
 \item{family}{sans by default, can be any supported font}
21 23
 
22 24
 \item{parse}{if TRUE, the labels will be passd into expressions}
Browse code

remove apeBootstrap and raxml object support as they were removed from treeio

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@127021 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 28/02/2017 07:12:21
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 % Please edit documentation in R/geom_label.R
3 3
 \name{geom_label2}
4 4
 \alias{geom_label2}
5
-\title{geom_text2}
5
+\title{geom_label2}
6 6
 \usage{
7 7
 geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8 8
   parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
... ...
@@ -41,7 +41,7 @@ only needed if you want to override he plot defaults.}
41 41
 label layer
42 42
 }
43 43
 \description{
44
-geom_text2 support aes(subset) via setup_data
44
+geom_label2 support aes(subset) via setup_data
45 45
 }
46 46
 \author{
47 47
 Guangchuang Yu
Browse code

update viewClade

guangchuang yu authored on 20/02/2017 08:36:54
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 % Please edit documentation in R/geom_label.R
3 3
 \name{geom_label2}
4 4
 \alias{geom_label2}
5
-\title{geom_text2}
5
+\title{geom_label2}
6 6
 \usage{
7 7
 geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8 8
   parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
... ...
@@ -41,7 +41,7 @@ only needed if you want to override he plot defaults.}
41 41
 label layer
42 42
 }
43 43
 \description{
44
-geom_text2 support aes(subset) via setup_data
44
+geom_label2 support aes(subset) via setup_data
45 45
 }
46 46
 \author{
47 47
 Guangchuang Yu
Browse code

emoji supported

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@126768 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 16/02/2017 07:35:52
Showing 1 changed files
... ...
@@ -4,10 +4,10 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_text2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., parse = FALSE,
8
-  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
9
-  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
10
-  show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8
+  parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
9
+  "lines"), label.r = unit(0.15, "lines"), label.size = 0.25,
10
+  na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
11 11
 }
12 12
 \arguments{
13 13
 \item{mapping}{the aesthetic mapping}
... ...
@@ -17,6 +17,8 @@ only needed if you want to override he plot defaults.}
17 17
 
18 18
 \item{...}{other arguments passed on to 'layer'}
19 19
 
20
+\item{family}{sans by default, can be any supported font}
21
+
20 22
 \item{parse}{if TRUE, the labels will be passd into expressions}
21 23
 
22 24
 \item{nudge_x}{horizontal adjustment}
Browse code

parse="emoji" :)

guangchuang yu authored on 16/02/2017 06:54:38
Showing 1 changed files
... ...
@@ -4,10 +4,10 @@
4 4
 \alias{geom_label2}
5 5
 \title{geom_text2}
6 6
 \usage{
7
-geom_label2(mapping = NULL, data = NULL, ..., parse = FALSE,
8
-  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
9
-  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
10
-  show.legend = NA, inherit.aes = TRUE)
7
+geom_label2(mapping = NULL, data = NULL, ..., family = "sans",
8
+  parse = FALSE, nudge_x = 0, nudge_y = 0, label.padding = unit(0.25,
9
+  "lines"), label.r = unit(0.15, "lines"), label.size = 0.25,
10
+  na.rm = TRUE, show.legend = NA, inherit.aes = TRUE)
11 11
 }
12 12
 \arguments{
13 13
 \item{mapping}{the aesthetic mapping}
... ...
@@ -17,6 +17,8 @@ only needed if you want to override he plot defaults.}
17 17
 
18 18
 \item{...}{other arguments passed on to 'layer'}
19 19
 
20
+\item{family}{sans by default, can be any supported font}
21
+
20 22
 \item{parse}{if TRUE, the labels will be passd into expressions}
21 23
 
22 24
 \item{nudge_x}{horizontal adjustment}
Browse code

geom_label2

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@115937 bc3139a8-67e5-0310-9ffc-ced21a209358

Guangchuang Yu authored on 07/04/2016 04:02:44
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,50 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/geom_label.R
3
+\name{geom_label2}
4
+\alias{geom_label2}
5
+\title{geom_text2}
6
+\usage{
7
+geom_label2(mapping = NULL, data = NULL, ..., parse = FALSE,
8
+  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
9
+  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
10
+  show.legend = NA, inherit.aes = TRUE)
11
+}
12
+\arguments{
13
+\item{mapping}{the aesthetic mapping}
14
+
15
+\item{data}{A layer specific dataset -
16
+only needed if you want to override he plot defaults.}
17
+
18
+\item{...}{other arguments passed on to 'layer'}
19
+
20
+\item{parse}{if TRUE, the labels will be passd into expressions}
21
+
22
+\item{nudge_x}{horizontal adjustment}
23
+
24
+\item{nudge_y}{vertical adjustment}
25
+
26
+\item{label.padding}{Amount of padding around label.}
27
+
28
+\item{label.r}{Radius of rounded corners.}
29
+
30
+\item{label.size}{Size of label border, in mm}
31
+
32
+\item{na.rm}{logical}
33
+
34
+\item{show.legend}{logical}
35
+
36
+\item{inherit.aes}{logical}
37
+}
38
+\value{
39
+label layer
40
+}
41
+\description{
42
+geom_text2 support aes(subset) via setup_data
43
+}
44
+\author{
45
+Guangchuang Yu
46
+}
47
+\seealso{
48
+\link[ggplot2]{geom_label}
49
+}
50
+
Browse code

geom_label2

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@115937 bc3139a8-67e5-0310-9ffc-ced21a209358

g.yu authored on 07/04/2016 04:02:44
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,50 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/geom_label.R
3
+\name{geom_label2}
4
+\alias{geom_label2}
5
+\title{geom_text2}
6
+\usage{
7
+geom_label2(mapping = NULL, data = NULL, ..., parse = FALSE,
8
+  nudge_x = 0, nudge_y = 0, label.padding = unit(0.25, "lines"),
9
+  label.r = unit(0.15, "lines"), label.size = 0.25, na.rm = TRUE,
10
+  show.legend = NA, inherit.aes = TRUE)
11
+}
12
+\arguments{
13
+\item{mapping}{the aesthetic mapping}
14
+
15
+\item{data}{A layer specific dataset -
16
+only needed if you want to override he plot defaults.}
17
+
18
+\item{...}{other arguments passed on to 'layer'}
19
+
20
+\item{parse}{if TRUE, the labels will be passd into expressions}
21
+
22
+\item{nudge_x}{horizontal adjustment}
23
+
24
+\item{nudge_y}{vertical adjustment}
25
+
26
+\item{label.padding}{Amount of padding around label.}
27
+
28
+\item{label.r}{Radius of rounded corners.}
29
+
30
+\item{label.size}{Size of label border, in mm}
31
+
32
+\item{na.rm}{logical}
33
+
34
+\item{show.legend}{logical}
35
+
36
+\item{inherit.aes}{logical}
37
+}
38
+\value{
39
+label layer
40
+}
41
+\description{
42
+geom_text2 support aes(subset) via setup_data
43
+}
44
+\author{
45
+Guangchuang Yu
46
+}
47
+\seealso{
48
+\link[ggplot2]{geom_label}
49
+}
50
+