tidy_combined_autoplot {TidyDensity} | R Documentation |
Automatic Plot of Combined Multi Dist Data
Description
This is an auto plotting function that will take in a tidy_
distribution function and a few arguments, one being the plot type, which is
a quoted string of one of the following:
-
density
-
quantile
-
probablity
-
qq
-
mcmc
If the number of simulations exceeds 9 then the legend will not print. The plot subtitle is put together by the attributes of the table passed to the function.
Usage
tidy_combined_autoplot(
.data,
.plot_type = "density",
.line_size = 0.5,
.geom_point = FALSE,
.point_size = 1,
.geom_rug = FALSE,
.geom_smooth = FALSE,
.geom_jitter = FALSE,
.interactive = FALSE
)
Arguments
.data |
The data passed in from a the function |
.plot_type |
This is a quoted string like 'density' |
.line_size |
The size param ggplot |
.geom_point |
A Boolean value of TREU/FALSE, FALSE is the default. TRUE
will return a plot with |
.point_size |
The point size param for ggplot |
.geom_rug |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return the use of |
.geom_smooth |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return the use of |
.geom_jitter |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return the use of |
.interactive |
A Boolean value of TRUE/FALSE, FALSE is the default. TRUE
will return an interactive |
Details
This function will spit out one of the following plots:
-
density
-
quantile
-
probability
-
qq
-
mcmc
Value
A ggplot or a plotly plot.
Author(s)
Steven P. Sanderson II, MPH
See Also
Other Autoplot:
bootstrap_stat_plot()
,
tidy_autoplot()
,
tidy_four_autoplot()
,
tidy_multi_dist_autoplot()
,
tidy_random_walk_autoplot()
Examples
combined_tbl <- tidy_combine_distributions(
tidy_normal(),
tidy_gamma(),
tidy_beta()
)
combined_tbl
combined_tbl |>
tidy_combined_autoplot()
combined_tbl |>
tidy_combined_autoplot(.plot_type = "qq")