plotBars | R Documentation |
Plotting a barplot with the posterior probabilities of each sex karyotype per sample
plotBars(
x,
colors = c("lightblue", "lightpink", "khaki", "maroon1", "dodgerblue3", "red4", "navy"),
maxNumSamplesPerPlot = 100,
sortByKaryotype = TRUE,
sampleNames = c(),
...
)
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. |
No return value, called for side effects.
bexy
bex <- bexy()
plotBars(bex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.