This function is primarily called by other functions. pm_box_list is a vectorized version of cont_cat.

pm_box(df, x, y, xs = defcx(), ys = defy(), ...)

pm_box_list(df, x, y, ...)

cont_cat(df, x, y, xs = defcx(), ys = defy(), ...)

Arguments

df

data frame to plot

x

character col//title for x-axis data; see col_label

y

character col//title for y-axis data; see col_label

xs

see defcx

ys

see defy

...

other arguments passed to boxwork

Details

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.

See also

Examples

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`