pm_box | R Documentation |
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(), ...)
df |
data frame to plot |
x |
character col//title for x-axis data; see |
y |
character col//title for y-axis data; see |
xs |
see |
ys |
see |
... |
other arguments passed to |
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
.
boxwork
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.