vplot | R Documentation |
Quick violin plot
vplot(
y,
group = "x",
facet1 = NULL,
facet2 = NULL,
col.sina = NULL,
transpose = FALSE,
flip = FALSE,
mapping = NULL,
stat = "ydensity",
position = "dodge",
trim = TRUE,
sample = NA,
scale = "width",
log = FALSE,
log1p = FALSE,
count = TRUE,
xlab = NULL,
ylim = NULL,
ylab = NULL,
minsup = NA,
scatter = FALSE,
wes = "Royal1",
col = NULL,
method = "count",
sina = !is.null(col.sina),
sina.scale = FALSE,
text = NULL,
reorder = FALSE,
reorder.fun = mean,
cex = 1,
cex.axis = 1,
cex.title = 1,
cex.scatter = 2 * cex,
col.scatter = alpha("black", 0.5),
col.background = "gray",
alpha = 1,
title = NULL,
legend.ncol = NULL,
legend.nrow = NULL,
vfilter = TRUE,
vplot = TRUE,
dot = FALSE,
stackratio = 1,
binwidth = 0.1,
plotly = FALSE,
print = TRUE,
facet_scales = "fixed"
)
y |
numeric data vector |
group |
length(y) vector of categories |
facet1 |
optional length(y) vector of row categories to facet on (=NULL) |
facet2 |
optional length(y) vector of column categories to facet on (=NULL) |
col.sina |
data vector to specify size in sina plot (NULL) will trigger sina = TRUE if not null |
transpose |
logical vector whether flip row / column orientation of facets (=FALSE) |
mapping |
mapping of groups to colors (=NULL) |
scale |
scale parameter to geom_vplot (=width), can also be "area" and "count" |
log |
logical flag whether to log transform (=FALSE) |
count |
logical flag whether to include counts in ylabels (=TRUE) |
xlab |
character xlabel (=NULL) |
ylab |
character ylabel (=NULL) |
minsup |
minimum support to include in a group (=NA) |
scatter |
logical flag whether to include scatter of points (=FALSE) |
sina |
logical flag whether to sina |
reorder |
logical flag whether to reorder groups by order.fun (which by default is mean) |
reorder.fun |
function on which to order from left to right (default mean) |
alpha |
numeric vector between 0 and 1 to specify alpha transparency of points if scatter is TRUE (0.3) |
title |
character specifying plot title (=NULL) |
facet_scales |
character specifying scales arg in ggplot2::facet_grid() |
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.