... | ... |
@@ -7,9 +7,9 @@ |
7 | 7 |
xlim_expand(xlim, panel) |
8 | 8 |
} |
9 | 9 |
\arguments{ |
10 |
-\item{xlim}{xlim} |
|
10 |
+\item{xlim}{x axis limits} |
|
11 | 11 |
|
12 |
-\item{panel}{panel} |
|
12 |
+\item{panel}{name of the panel to expand} |
|
13 | 13 |
} |
14 | 14 |
\value{ |
15 | 15 |
updated tree view |
... | ... |
@@ -17,6 +17,15 @@ updated tree view |
17 | 17 |
\description{ |
18 | 18 |
expand x axis limits for specific panel |
19 | 19 |
} |
20 |
+\examples{ |
|
21 |
+x <- rtree(30) |
|
22 |
+p <- ggtree(x) + geom_tiplab() |
|
23 |
+d <- data.frame(label = x$tip.label, |
|
24 |
+ value = rnorm(30)) |
|
25 |
+p2 <- p + geom_facet(panel = "Dot", data = d, |
|
26 |
+ geom = geom_point, mapping = aes(x = value)) |
|
27 |
+p2 + xlim_expand(c(-10, 10), 'Dot') |
|
28 |
+} |
|
20 | 29 |
\author{ |
21 | 30 |
Guangchuang Yu |
22 | 31 |
} |
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@123214 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,23 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/xlim.R |
|
3 |
+\name{xlim_expand} |
|
4 |
+\alias{xlim_expand} |
|
5 |
+\title{xlim_expand} |
|
6 |
+\usage{ |
|
7 |
+xlim_expand(xlim, panel) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{xlim}{xlim} |
|
11 |
+ |
|
12 |
+\item{panel}{panel} |
|
13 |
+} |
|
14 |
+\value{ |
|
15 |
+updated tree view |
|
16 |
+} |
|
17 |
+\description{ |
|
18 |
+expand x axis limits for specific panel |
|
19 |
+} |
|
20 |
+\author{ |
|
21 |
+guangchuang yu |
|
22 |
+} |
|
23 |
+ |