plot.compare_props: Plot method for the compare_props function

plot.compare_propsR Documentation

Plot method for the compare_props function

Description

Plot method for the compare_props function

Usage

## S3 method for class 'compare_props'
plot(x, plots = "bar", shiny = FALSE, custom = FALSE, ...)

Arguments

x

Return value from compare_props

plots

One or more plots of proportions ("bar" or "dodge")

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

Details

See https://radiant-rstats.github.io/docs/basics/compare_props.html for an example in Radiant

See Also

compare_props to calculate results

summary.compare_props to summarize results

Examples

result <- compare_props(titanic, "pclass", "survived")
plot(result, plots = c("bar", "dodge"))


radiant-rstats/radiant.basic documentation built on Jan. 19, 2024, 12:07 p.m.