pm_scatter: Plot continuous variable versus continuous variable

View source: R/cont.R

pm_scatterR Documentation

Plot continuous variable versus continuous variable

Description

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.

Usage

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

Details

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

Value

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

See Also

scatt

Examples

df <- pmplots_data_id()

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


metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon