Description Usage Arguments Details Examples
View source: R/low-level-interface-distr.R
Functions to create a distribution plot to be sent to the console or written to a file.
1 2 3 4 5 |
data |
A data frame with data to visualize. |
aes |
A string to indicate the column for which a distribution should be shown. |
name |
The name of the variable to plot. If |
geom |
The bare name of the geom to use. If |
fill |
The color to fill the density area with. |
... |
Passed to the geom. See 'Details'. |
All functions documented here are just a forwarder to vis_distr
and the
reason for their existence is because when used as an input to vis_cols
,
the dimensions of the output can be derived from the name of the transformer,
so the argument k_dimensional
does not have to be specified.
If the column has not the target class, you can convert one or multiple
columns easily with transform_cols()
.
1 2 3 4 | vis_1d_distr(mtcars, aes = "cyl") %>%
flatten_gg()
vis_distr(mtcars, aes = c("cyl", "vs")) %>%
flatten_gg()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.