Description Usage Arguments Examples
Uses very generic dplyr code to create boxplot calculations. Because of this approach, the calculations automatically run inside the database if 'data' has a database or sparklyr connection. The 'class()' of such tables in R are: tbl_sql, tbl_dbi, tbl_spark
It currently only works with Spark, Hive, and SQL Server connections.
Note that this function supports input tbl that already contains grouping variables. This can be useful when creating faceted boxplots.
1 | db_compute_boxplot(data, x, var, coef = 1.5)
|
data |
A table (tbl), can already contain additional grouping vars specified |
x |
A discrete variable in which to group the boxplots |
var |
A continuous variable |
coef |
Length of the whiskers as multiple of IQR. Defaults to 1.5 |
1 2 | mtcars %>%
db_compute_boxplot(am, mpg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.