View source: R/visualization.R
plotProportion | R Documentation |
plotProportionBar
creates bar plots comparing the
cross-category proportion. plotProportionDot
creates dot plots.
plotClusterProportions
has variable pre-specified and calls the dot
plot. plotProportion
produces a combination of both bar plots and dot
plot.
Having package "ggrepel" installed can help adding tidier percentage
annotation on the pie chart. Run options(ggrepel.max.overlaps = n)
before plotting to set allowed label overlaps.
plotProportion(
object,
class1 = NULL,
class2 = "dataset",
method = c("stack", "group", "pie"),
...
)
plotProportionDot(
object,
class1 = NULL,
class2 = "dataset",
showLegend = FALSE,
panelBorder = TRUE,
...
)
plotProportionBar(
object,
class1 = NULL,
class2 = "dataset",
method = c("stack", "group"),
inclRev = FALSE,
panelBorder = TRUE,
combinePlot = TRUE,
...
)
plotClusterProportions(object, useCluster = NULL, return.plot = FALSE, ...)
plotProportionPie(
object,
class1 = NULL,
class2 = "dataset",
labelSize = 4,
labelColor = "black",
circleColors = NULL,
...
)
object |
A liger object. |
class1 , class2 |
Each should be a single name of a categorical variable
available in |
method |
For bar plot, choose whether to draw |
... |
Arguments passed on to
|
showLegend |
Whether to show the legend. Default |
panelBorder |
Whether to show rectangle border of the panel instead of
using ggplot classic bottom and left axis lines. Default |
inclRev |
Logical, for barplot, whether to reverse the specification for
|
combinePlot |
Logical, whether to combine the two plots with
|
useCluster |
For |
return.plot |
|
labelSize , labelColor |
Settings on pie chart percentage label. Default
|
circleColors |
Character vector of colors. |
ggplot or list of ggplot
plotProportion(pbmcPlot)
plotProportionBar(pbmcPlot, method = "group")
plotProportionPie(pbmcPlot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.