powered by
Create a box plot from a data frame through ggplotly
make_boxplot( dt, value, groups = NULL, jitter = FALSE, ggtheme = "minimal", x_axis_label = NULL, y_axis_label = NULL, plot_palette = NULL, plot_palette_generator = "plasma" )
data.frame containing the data to plot.
Name of the column to use as values on the y axis of the plot.
Name of the column containing the different groups.
Whether to add the actual values of each observation over the box plots. Only done when dt has 1000 rows or less.
ggplot2 theme function to apply. Default is ggplot2::theme_minimal.
Label for the x axis.
Label for the y axis.
Character vector of hex codes specifying the colors to use on the plot.
Palette from the viridis package used in case plot_palette is unspecified or insufficient for the number of colors required
A plotly-ized version of a ggplot box plot.
# NOT RUN { make_boxplot(dt = ggplot2::mpg, value = 'hwy', groups = 'drv', jitter = TRUE) # }
Run the code above in your browser using DataLab