pm_scatter | R Documentation |
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(), ...)
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 |
... |
passed to |
Since this function creates a scatter plot,
both the x
and y
columns must
be numeric.
pm_scatter
returns a single plot;
pm_scatter_list
returns a list of plots.
scatt
df <- pmplots_data_id()
pm_scatter(
df,
x="WT//Weight (kg)",
y="HT//Height (cm)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.