.ggScatter | R Documentation |
Produce single scatter plot with data frame passed from upstream
.ggScatter(
plotDF,
x,
y,
colorBy = NULL,
shapeBy = NULL,
dotOrder = c("shuffle", "ascending", "descending"),
dotSize = getOption("ligerDotSize"),
dotAlpha = 0.9,
trimHigh = NULL,
trimLow = NULL,
zeroAsNA = TRUE,
raster = NULL,
labelBy = colorBy,
labelText = TRUE,
labelTextSize = 4,
ggrepelLabelTick = FALSE,
seed = 1,
...
)
plotDF |
Data frame like object (fortifiable) that contains all necessary information to make the plot. |
x , y |
Available variable name in |
colorBy , shapeBy |
See |
dotOrder |
Controls the order that each dot is added to the plot. Choose
from |
dotSize , dotAlpha |
Numeric, controls the size or transparency of all
dots. Default |
trimHigh , trimLow |
Numeric, limit the largest or smallest value of
continuous |
zeroAsNA |
Logical, whether to set zero values in continuous
|
raster |
Logical, whether to rasterize the plot. Default |
labelBy |
A variable name available in |
labelText |
Logical, whether to show text label at the median position
of each categorical group specified by |
labelTextSize |
Numeric, controls the size of label size when
|
ggrepelLabelTick |
Logical, whether to force showing the tick between
label texts and the position they point to. Useful when a lot of text labels
are required. Default |
seed |
Random seed for reproducibility. Default |
... |
More theme setting arguments passed to
|
Having package "ggrepel" installed can help adding tidier text labels on the scatter plot.
ggplot object by default. When plotly = TRUE
, returns
plotly (htmlwidget) object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.