plotBinScatter | R Documentation |
Plot a scatter (xy-plot) of binned elements with binning information.
plotBinScatter(
x,
y,
b,
cols = NULL,
xlab = deparse(substitute(x, env = as.environment(-1))),
ylab = deparse(substitute(y, env = as.environment(-1))),
main = "",
legendPosition = "right",
legend = NULL,
legend.cex = NULL,
...
)
x |
A numerical vector with x values. |
y |
A numerical vector with y values (the values used for binning). |
b |
A factor that groups elements of |
cols |
|
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
main |
Main title. |
legendPosition |
A |
legend |
Deprecated (ignored). Please use |
legend.cex |
Deprecated (ignored). You can use
|
... |
Further arguments passed to |
The generated scatter plot as a ggplot
object.
bin
, getColsByBin
,
geom_point
set.seed(1)
x <- rnorm(100)
y <- rnorm(100)
b <- bin(y, "equalN", nElements = 10)
plotBinScatter(x, y, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.