This function is primarily called by other functions. pm_scatter is an alias to cont_cont and should be used in production code. pm_scatter_list is a vectorized form of pm_scatter.

pm_scatter(df, x, y, xs = defx(), ys = defy(), ...)

pm_scatter_list(df, x, y, ...)

cont_cont(df, x, y, xs = defx(), 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 defx

ys

see defy

...

passed to scatt and layer_hs

Value

pm_scatter returns a single plot; pm_scatter_list returns a list of plots.

Details

Since this function creates a scatter plot, both the x and y columns must be numeric.

See also

Examples

df <- pmplots_data_id()

pm_scatter(
  df,
  x="WT//Weight (kg)",
  y="HT//Height (cm)"
)