This function is primarily called by other functions.
pm_box_list
is a vectorized version of cont_cat
.
Since this function creates a boxplot,
the x
column must be character, factor
or logical and y
column must
be numeric.
Summary numbers located below each box are described in
boxwork
. The summaries will not be correct if the plot
is eventually faceted by another variable in the data set. In this case,
either use shown=FALSE
or create the plot with
split_plot
.
df <- pmplots_data_id()
cont_cat(df, x="STUDYc//Study name", y="WT//Weight (kg)")
set.seed(12345)
cont_cat(df, x="STUDYc", y="WT", points = list(width = 0.1))
#> Warning: Ignoring unknown parameters: `width`