View source: R/plot-dot-plot.R
plot_dot_plot_2d | R Documentation |
Plots a dot plot of two categorical variables. Numeric values can be displayed via alpha, color and size.
plot_dot_plot_2d(
df,
x,
y,
alpha.by = NULL,
alpha.trans = "identity",
color.by = NULL,
color.trans = "identity",
shape.by = NULL,
size.by = NULL,
size.trans = "reverse",
pt.alpha = 0.9,
pt.color = "black",
pt.clrp = "default",
pt.clrsp = "plasma",
pt.shape = 19,
pt.size = 3,
transform.with = NULL,
arrange.y = FALSE,
arrange.by = NULL,
reverse.all = FALSE,
reverse.within = FALSE,
...
)
df |
A data.frame. |
x , y |
Character value. Variable to be plotted on the respective axis. |
arrange.y |
Logical. If TRUE the labels of |
arrange.by |
Character value or NULL. If character, denotes the
numeric variable by which the labels of |
reverse.all |
Logical. If TRUE labels are displayed from bottom to top. If FALSE, labels are displayed from top to bottom. |
reverse.within |
Logical. If TRUE, labels are arranged within the
groups in a descending manner. If FALSE, labels are arranged within the
groups in an ascending manner. (regarding the numeric variables of |
A ggplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.