plotBars {bexy} | R Documentation |
Plotting a barplot with the posterior probabilities of each sex karyotype per sample
Description
Plotting a barplot with the posterior probabilities of each sex karyotype per sample
Usage
plotBars(
x,
colors = c("lightblue", "lightpink", "khaki", "maroon1", "dodgerblue3", "red4", "navy"),
maxNumSamplesPerPlot = 100,
sortByKaryotype = TRUE,
sampleNames = c(),
...
)
Arguments
x |
A bexy object. |
colors |
A vector of length 7 with the colors for XY, XX, X0, XXY, XYY, XXX and XXYY, respectively. |
maxNumSamplesPerPlot |
How many samples to place next to each other into one barplot. If there are more samples, multiple barplots will be generated. This is to ensure that the labels are readable. |
sortByKaryotype |
If TRUE, the samples (i.e. the bars) are ordered by the posterior mode of the sex karyotype. |
sampleNames |
A vector of sample names that represents the order in which the bars are plotted. Overrides any argument given to sortByKaryotype. |
... |
Other parameters used for plotting. |
Value
No return value, called for side effects.
See Also
Examples
bex <- bexy()
plotBars(bex)
[Package bexy version 0.1.3 Index]