View source: R/qbin_lineplot.R
qbin_lineplot | R Documentation |
qbin_lineplot
creates quantile binned boxplots from data
using x
as the binning
variable and connects the medians: it focuses on the change of median between qbins.
qbin_lineplot(
data,
x = NULL,
n = 100,
min_bin_size = NULL,
ncols = NULL,
connect = TRUE,
color = "#002f2f",
fill = "#2f4f4f",
auto_fill = FALSE,
qmarker = NULL,
xmarker = NULL,
...
)
data |
a |
x |
|
n |
|
min_bin_size |
|
ncols |
The number of column to be used in the layout |
connect |
if |
color |
The color to use for the lines |
fill |
The color to use for the bars |
auto_fill |
If |
qmarker |
|
xmarker |
|
... |
Additional arguments to pass to the plot functions |
The data is binned by the x
and a boxplot is created for each bin.
The median of the subsequent boxplots are connected to highlight jumps in the
data. It hints at the dependecy of the variable on the binning variable.
A list
of ggplot objects.
Other qbin plotting functions:
qbin_barplot()
,
qbin_boxplot()
,
qbin_heatmap()
qbin_lineplot(
iris,
x = "Sepal.Length",
)
qbin_lineplot(
iris,
x = "Sepal.Length",
xmarker = 5.5,
auto_fill = TRUE
)
qbin_lineplot(
iris,
x = "Sepal.Length",
overlap=TRUE,
xmarker = 5.5,
auto_fill = TRUE
)
data("diamonds", package="ggplot2")
qbin_lineplot(
diamonds[1:7],
"carat",
auto_fill = TRUE
)
qbin_lineplot(
diamonds[1:7],
"price",
auto_fill = TRUE,
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.