nt_dotplot | R Documentation |
Plot dotplot for several variables.
nt_dotplot(
data,
group = NULL,
binwidth = 1,
save = FALSE,
fig.height = 5,
fig.width = 5,
std_fun = std_dotplot,
std_fun_group = std_dotplot_group,
...
)
data |
a data frame with the variables. |
group |
an optional data frame with the group variable. |
binwidth |
a numerical vector specifying the bin width for each variable. |
save |
a logical value indicating whether the output should be saved as a jpeg file. |
fig.height |
a numeric value indicating the height (in) of the file. |
fig.width |
a numeric value indicating the width (in) of the file. |
std_fun |
a function to plot a dotplot when |
std_fun_group |
a function to plot a dotplot when |
... |
additional input arguments that may be used when creating your own function. |
The functions std_dotplot and std_dotplot_group can be
modified by the user in order to customize the dotplots a prior.
The plots also can be modified a posterior as a regular ggplot object.
See geom_dotplot
, std_dotplot
and
std_dotplot_group
.
a list of ggplot objects with each item named by the column names from
var
.
data(iris)
iris |> nt_dotplot(binwidth = 0.05)
iris |> nt_dotplot(group = Species, binwidth = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.