View source: R/compare_means.R
plot.compare_means | R Documentation |
Plot method for the compare_means function
## S3 method for class 'compare_means'
plot(x, plots = "scatter", shiny = FALSE, custom = FALSE, ...)
x |
Return value from |
plots |
One or more plots ("bar", "density", "box", or "scatter") |
shiny |
Did the function call originate inside a shiny app |
custom |
Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This option can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and https://ggplot2.tidyverse.org/ for options. |
... |
further arguments passed to or from other methods |
See https://radiant-rstats.github.io/docs/basics/compare_means.html for an example in Radiant
compare_means
to calculate results
summary.compare_means
to summarize results
result <- compare_means(diamonds, "cut", "price")
plot(result, plots = c("bar", "density"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.