... | ... |
@@ -20,16 +20,16 @@ If \code{inherit.aes = TRUE}, the mapping can be inherited from the plot mapping |
20 | 20 |
specified in the call to \code{ggplot()}.} |
21 | 21 |
|
22 | 22 |
\item{data}{The data to be displayed in this layer. If 'NULL' (the default), |
23 |
-the data is inherited from the plot data as specified in the call to 'ggplot()',} |
|
23 |
+the data is inherited from the plot data as specified in the call to \code{ggplot()}.} |
|
24 | 24 |
|
25 | 25 |
\item{position}{Position adjustment.} |
26 | 26 |
|
27 |
-\item{na.rm}{logical. If 'FALSE' (the default), missing values are removed with a warning. If 'TRUE', missing values are silently removed.} |
|
27 |
+\item{na.rm}{logical. If 'FALSE' (default), missing values are removed with a warning. If 'TRUE', missing values are silently removed.} |
|
28 | 28 |
|
29 | 29 |
\item{show.legend}{logical. Should this layer be included in the legends? |
30 | 30 |
'NA', the default, includes if any aesthetics are mapped. 'FALSE' never includes, and 'TRUE' always includes.} |
31 | 31 |
|
32 |
-\item{inherit.aes}{logical (default is 'TRUE'). If 'FALSE', overrides the default aesthetics, |
|
32 |
+\item{inherit.aes}{logical (defaults to 'TRUE'). If 'FALSE', overrides the default aesthetics, |
|
33 | 33 |
rather then combining with them.} |
34 | 34 |
|
35 | 35 |
\item{...}{addtional parameters that passed on to this layer. These are often aesthetics, used to set an aesthetic to a fixed value, like \code{colour = "red"} or \code{size = 3}.} |
... | ... |
@@ -38,7 +38,18 @@ rather then combining with them.} |
38 | 38 |
tip point layer |
39 | 39 |
} |
40 | 40 |
\description{ |
41 |
-add tip point |
|
41 |
+add tip point layer for a tree |
|
42 |
+} |
|
43 |
+\examples{ |
|
44 |
+library(ggtree) |
|
45 |
+tr<- rtree(15) |
|
46 |
+x <- ggtree(tr) |
|
47 |
+x + geom_tippoint() |
|
48 |
+} |
|
49 |
+\references{ |
|
50 |
+For more detailed demonstration, please refer to chapter 4.3.2 of |
|
51 |
+\emph{Data Integration, Manipulation and Visualization of Phylogenetic Trees} |
|
52 |
+\url{http://yulab-smu.top/treedata-book/index.html} by Guangchuang Yu. |
|
42 | 53 |
} |
43 | 54 |
\author{ |
44 | 55 |
Guangchuang Yu |
... | ... |
@@ -15,19 +15,24 @@ geom_tippoint( |
15 | 15 |
) |
16 | 16 |
} |
17 | 17 |
\arguments{ |
18 |
-\item{mapping}{aes mapping} |
|
18 |
+\item{mapping}{Set of aesthetic mapping created by \code{aes()}. |
|
19 |
+If \code{inherit.aes = TRUE}, the mapping can be inherited from the plot mapping as |
|
20 |
+specified in the call to \code{ggplot()}.} |
|
19 | 21 |
|
20 |
-\item{data}{data} |
|
22 |
+\item{data}{The data to be displayed in this layer. If 'NULL' (the default), |
|
23 |
+the data is inherited from the plot data as specified in the call to 'ggplot()',} |
|
21 | 24 |
|
22 |
-\item{position}{position} |
|
25 |
+\item{position}{Position adjustment.} |
|
23 | 26 |
|
24 |
-\item{na.rm}{logical} |
|
27 |
+\item{na.rm}{logical. If 'FALSE' (the default), missing values are removed with a warning. If 'TRUE', missing values are silently removed.} |
|
25 | 28 |
|
26 |
-\item{show.legend}{logical} |
|
29 |
+\item{show.legend}{logical. Should this layer be included in the legends? |
|
30 |
+'NA', the default, includes if any aesthetics are mapped. 'FALSE' never includes, and 'TRUE' always includes.} |
|
27 | 31 |
|
28 |
-\item{inherit.aes}{logical} |
|
32 |
+\item{inherit.aes}{logical (default is 'TRUE'). If 'FALSE', overrides the default aesthetics, |
|
33 |
+rather then combining with them.} |
|
29 | 34 |
|
30 |
-\item{...}{addktional parameter} |
|
35 |
+\item{...}{addtional parameters that passed on to this layer. These are often aesthetics, used to set an aesthetic to a fixed value, like \code{colour = "red"} or \code{size = 3}.} |
|
31 | 36 |
} |
32 | 37 |
\value{ |
33 | 38 |
tip point layer |
... | ... |
@@ -4,8 +4,15 @@ |
4 | 4 |
\alias{geom_tippoint} |
5 | 5 |
\title{geom_tippoint} |
6 | 6 |
\usage{ |
7 |
-geom_tippoint(mapping = NULL, data = NULL, position = "identity", |
|
8 |
- na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...) |
|
7 |
+geom_tippoint( |
|
8 |
+ mapping = NULL, |
|
9 |
+ data = NULL, |
|
10 |
+ position = "identity", |
|
11 |
+ na.rm = FALSE, |
|
12 |
+ show.legend = NA, |
|
13 |
+ inherit.aes = TRUE, |
|
14 |
+ ... |
|
15 |
+) |
|
9 | 16 |
} |
10 | 17 |
\arguments{ |
11 | 18 |
\item{mapping}{aes mapping} |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@115937 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -4,17 +4,14 @@ |
4 | 4 |
\alias{geom_tippoint} |
5 | 5 |
\title{geom_tippoint} |
6 | 6 |
\usage{ |
7 |
-geom_tippoint(mapping = NULL, data = NULL, stat = "identity", |
|
8 |
- position = "identity", na.rm = FALSE, show.legend = NA, |
|
9 |
- inherit.aes = TRUE, ...) |
|
7 |
+geom_tippoint(mapping = NULL, data = NULL, position = "identity", |
|
8 |
+ na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ...) |
|
10 | 9 |
} |
11 | 10 |
\arguments{ |
12 | 11 |
\item{mapping}{aes mapping} |
13 | 12 |
|
14 | 13 |
\item{data}{data} |
15 | 14 |
|
16 |
-\item{stat}{stat} |
|
17 |
- |
|
18 | 15 |
\item{position}{position} |
19 | 16 |
|
20 | 17 |
\item{na.rm}{logical} |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@111813 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,15 +1,29 @@ |
1 |
-% Generated by roxygen2 (4.1.1): do not edit by hand |
|
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 | 2 |
% Please edit documentation in R/geom_point.R |
3 | 3 |
\name{geom_tippoint} |
4 | 4 |
\alias{geom_tippoint} |
5 | 5 |
\title{geom_tippoint} |
6 | 6 |
\usage{ |
7 |
-geom_tippoint(mapping = NULL, ...) |
|
7 |
+geom_tippoint(mapping = NULL, data = NULL, stat = "identity", |
|
8 |
+ position = "identity", na.rm = FALSE, show.legend = NA, |
|
9 |
+ inherit.aes = TRUE, ...) |
|
8 | 10 |
} |
9 | 11 |
\arguments{ |
10 | 12 |
\item{mapping}{aes mapping} |
11 | 13 |
|
12 |
-\item{...}{additional parameter} |
|
14 |
+\item{data}{data} |
|
15 |
+ |
|
16 |
+\item{stat}{stat} |
|
17 |
+ |
|
18 |
+\item{position}{position} |
|
19 |
+ |
|
20 |
+\item{na.rm}{logical} |
|
21 |
+ |
|
22 |
+\item{show.legend}{logical} |
|
23 |
+ |
|
24 |
+\item{inherit.aes}{logical} |
|
25 |
+ |
|
26 |
+\item{...}{addktional parameter} |
|
13 | 27 |
} |
14 | 28 |
\value{ |
15 | 29 |
tip point layer |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@107950 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -4,26 +4,12 @@ |
4 | 4 |
\alias{geom_tippoint} |
5 | 5 |
\title{geom_tippoint} |
6 | 6 |
\usage{ |
7 |
-geom_tippoint(mapping = NULL, data = NULL, stat = "identity", |
|
8 |
- position = "identity", na.rm = FALSE, show.legend = NA, |
|
9 |
- inherit.aes = TRUE, ...) |
|
7 |
+geom_tippoint(mapping = NULL, ...) |
|
10 | 8 |
} |
11 | 9 |
\arguments{ |
12 | 10 |
\item{mapping}{aes mapping} |
13 | 11 |
|
14 |
-\item{data}{data} |
|
15 |
- |
|
16 |
-\item{stat}{stat} |
|
17 |
- |
|
18 |
-\item{position}{position} |
|
19 |
- |
|
20 |
-\item{na.rm}{logical} |
|
21 |
- |
|
22 |
-\item{show.legend}{logical} |
|
23 |
- |
|
24 |
-\item{inherit.aes}{logical} |
|
25 |
- |
|
26 |
-\item{...}{addktional parameter} |
|
12 |
+\item{...}{additional parameter} |
|
27 | 13 |
} |
28 | 14 |
\value{ |
29 | 15 |
tip point layer |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@107869 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,26 +1,37 @@ |
1 | 1 |
% Generated by roxygen2 (4.1.1): do not edit by hand |
2 |
-% Please edit documentation in R/ggtree.R |
|
2 |
+% Please edit documentation in R/geom_point.R |
|
3 | 3 |
\name{geom_tippoint} |
4 | 4 |
\alias{geom_tippoint} |
5 | 5 |
\title{geom_tippoint} |
6 | 6 |
\usage{ |
7 |
-geom_tippoint(...) |
|
7 |
+geom_tippoint(mapping = NULL, data = NULL, stat = "identity", |
|
8 |
+ position = "identity", na.rm = FALSE, show.legend = NA, |
|
9 |
+ inherit.aes = TRUE, ...) |
|
8 | 10 |
} |
9 | 11 |
\arguments{ |
10 |
-\item{...}{additional parameter} |
|
12 |
+\item{mapping}{aes mapping} |
|
13 |
+ |
|
14 |
+\item{data}{data} |
|
15 |
+ |
|
16 |
+\item{stat}{stat} |
|
17 |
+ |
|
18 |
+\item{position}{position} |
|
19 |
+ |
|
20 |
+\item{na.rm}{logical} |
|
21 |
+ |
|
22 |
+\item{show.legend}{logical} |
|
23 |
+ |
|
24 |
+\item{inherit.aes}{logical} |
|
25 |
+ |
|
26 |
+\item{...}{addktional parameter} |
|
11 | 27 |
} |
12 | 28 |
\value{ |
13 | 29 |
tip point layer |
14 | 30 |
} |
15 | 31 |
\description{ |
16 |
-add points layer of tips |
|
17 |
-} |
|
18 |
-\examples{ |
|
19 |
-require(ape) |
|
20 |
-tr <- rtree(10) |
|
21 |
-ggtree(tr) + geom_tippoint() |
|
32 |
+add tip point |
|
22 | 33 |
} |
23 | 34 |
\author{ |
24 |
-Yu Guangchuang |
|
35 |
+Guangchuang Yu |
|
25 | 36 |
} |
26 | 37 |
|
Commit id: ca17acc22b608158936b9c2790bff2f7504f38d9
add author
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@103112 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@98340 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+% Generated by roxygen2 (4.1.0): do not edit by hand |
|
2 |
+% Please edit documentation in R/ggtree.R |
|
3 |
+\name{geom_tippoint} |
|
4 |
+\alias{geom_tippoint} |
|
5 |
+\title{geom_tippoint} |
|
6 |
+\usage{ |
|
7 |
+geom_tippoint(...) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{...}{additional parameter} |
|
11 |
+} |
|
12 |
+\value{ |
|
13 |
+tip point layer |
|
14 |
+} |
|
15 |
+\description{ |
|
16 |
+add points layer of tips |
|
17 |
+} |
|
18 |
+\examples{ |
|
19 |
+require(ape) |
|
20 |
+tr <- rtree(10) |
|
21 |
+ggtree(tr) + geom_tippoint() |
|
22 |
+} |
|
23 |
+\author{ |
|
24 |
+Yu Guangchuang |
|
25 |
+} |
|
26 |
+ |