sns_box
sns_box(df, groupcol, valuecol)
Input: df, groupcol, valuecol · Output: no output
What it is
One boxplot group per distinct value of column groupcol (string, first-seen order) in Table df, each group's values drawn from column valuecol (string) and labeled with the group's name.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
sns_box(df, groupcol, valuecol) | df string or Tablenot documented yetgroupcol string or Tablenot documented yetvaluecol string or Tablenot documented yet | no output | — |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
df = table(x = randn(30, seed = 1), y = randn(30, seed = 2),
grp = ["a","b","a","b","a","b","a","b","a","b",
"a","b","a","b","a","b","a","b","a","b",
"a","b","a","b","a","b","a","b","a","b"])
sns_scatter(df, "x", "y", "grp")
figure()
sns_box(df, "grp", "y")
figure()
sns_bar(df, "grp", "y")
print("rows: " + str(rows(df)))
output
rows: 30
from plotting
How it works
sns_box(df, groupcol, valuecol) — one boxplot group per distinct groupcol value (first-seen order).
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.