View source: R/scatter_by_target.R
lp_scatter_by_target | R Documentation |
This function plots a multi-panel scatterplot where many variables are plotted against a target variable
lp_scatter_by_target( .data, target = NULL, ..., width = 25, .cor_method = "pearson", .smouth = "lm", .scales = c("free_y", "free", "fixed", "free_x") )
.data |
The dataframe |
target |
The target variable to plot scatter against all other vars |
... |
The variables to use. DPLYR style. Supports |
width |
The width of the labeller function in the strips. Defaults t0 25 |
.cor_method |
The correlation method. One of "pearson", "kendall", spearman". Defaults to "pearson" |
.smouth |
The smooth method for the graphs. All option available in the ggplot2::geom_smouth() |
.scales |
Character. The |
A ggplot object
lp_scatter_by_target(mtcars, target = mpg, disp:wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.