... | ... |
@@ -8,7 +8,7 @@ Barplot Annotation for oncoPrint |
8 | 8 |
} |
9 | 9 |
\usage{ |
10 | 10 |
anno_oncoprint_barplot(type = NULL, which = c("column", "row"), |
11 |
- bar_width = 0.6, ylim = NULL, show_fraction = FALSE, axis = TRUE, |
|
11 |
+ bar_width = 0.6, beside = FALSE, ylim = NULL, show_fraction = FALSE, axis = TRUE, |
|
12 | 12 |
axis_param = if(which == "column") default_axis_param("column") else list(side = "top", labels_rot = 0), |
13 | 13 |
width = NULL, height = NULL, border = FALSE) |
14 | 14 |
} |
... | ... |
@@ -17,6 +17,7 @@ anno_oncoprint_barplot(type = NULL, which = c("column", "row"), |
17 | 17 |
\item{type}{A vector of the alteration types in the data. It can be a subset of all alteration types if you don't want to show them all.} |
18 | 18 |
\item{which}{Is it a row annotation or a column annotation?} |
19 | 19 |
\item{bar_width}{Width of the bars.} |
20 |
+ \item{beside}{Will bars be stacked or be positioned beside each other?} |
|
20 | 21 |
\item{ylim}{Data range.} |
21 | 22 |
\item{show_fraction}{Whether to show the numbers or the fractions?} |
22 | 23 |
\item{axis}{Whether draw axis?} |
... | ... |
@@ -8,7 +8,7 @@ Barplot Annotation for oncoPrint |
8 | 8 |
} |
9 | 9 |
\usage{ |
10 | 10 |
anno_oncoprint_barplot(type = NULL, which = c("column", "row"), |
11 |
- bar_width = 0.6, ylim = NULL, axis = TRUE, |
|
11 |
+ bar_width = 0.6, ylim = NULL, show_fraction = FALSE, axis = TRUE, |
|
12 | 12 |
axis_param = if(which == "column") default_axis_param("column") else list(side = "top", labels_rot = 0), |
13 | 13 |
width = NULL, height = NULL, border = FALSE) |
14 | 14 |
} |
... | ... |
@@ -18,6 +18,7 @@ anno_oncoprint_barplot(type = NULL, which = c("column", "row"), |
18 | 18 |
\item{which}{Is it a row annotation or a column annotation?} |
19 | 19 |
\item{bar_width}{Width of the bars.} |
20 | 20 |
\item{ylim}{Data range.} |
21 |
+ \item{show_fraction}{Whether to show the numbers or the fractions?} |
|
21 | 22 |
\item{axis}{Whether draw axis?} |
22 | 23 |
\item{axis_param}{Parameters for controlling axis.} |
23 | 24 |
\item{width}{Width of the annotation.} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,37 @@ |
1 |
+\name{anno_oncoprint_barplot} |
|
2 |
+\alias{anno_oncoprint_barplot} |
|
3 |
+\title{ |
|
4 |
+Barplot Annotation for oncoPrint |
|
5 |
+} |
|
6 |
+\description{ |
|
7 |
+Barplot Annotation for oncoPrint |
|
8 |
+} |
|
9 |
+\usage{ |
|
10 |
+anno_oncoprint_barplot(type = NULL, which = c("column", "row"), |
|
11 |
+ bar_width = 0.6, ylim = NULL, axis = TRUE, |
|
12 |
+ axis_param = if(which == "column") default_axis_param("column") else list(side = "top", labels_rot = 0), |
|
13 |
+ width = NULL, height = NULL, border = FALSE) |
|
14 |
+} |
|
15 |
+\arguments{ |
|
16 |
+ |
|
17 |
+ \item{type}{A vector of the alteration types in the data. It can be a subset of all alteration types if you don't want to show them all.} |
|
18 |
+ \item{which}{Is it a row annotation or a column annotation?} |
|
19 |
+ \item{bar_width}{Width of the bars.} |
|
20 |
+ \item{ylim}{Data range.} |
|
21 |
+ \item{axis}{Whether draw axis?} |
|
22 |
+ \item{axis_param}{Parameters for controlling axis.} |
|
23 |
+ \item{width}{Width of the annotation.} |
|
24 |
+ \item{height}{Height of the annotation.} |
|
25 |
+ \item{border}{Whether draw the border?} |
|
26 |
+ |
|
27 |
+} |
|
28 |
+\details{ |
|
29 |
+This annotation function should always be used with \code{\link{oncoPrint}}. |
|
30 |
+} |
|
31 |
+\author{ |
|
32 |
+Zuguang Gu <z.gu@dkfz.de> |
|
33 |
+} |
|
34 |
+\examples{ |
|
35 |
+# There is no example |
|
36 |
+NULL |
|
37 |
+} |