Description Usage Arguments Examples
Autoplot condensed summaries.
1 2 | ## S3 method for class 'condensed'
autoplot(x, var = last(summary_vars(x)), ...)
|
x |
a condensed summary |
var |
which summary variable to display |
... |
other arguments passed on to individual methods |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if (require("ggplot2")) {
# 1d summaries -----------------------------
x <- rchallenge(1e4)
z <- x + rt(length(x), df = 2)
xsum <- condense(bin(x, 0.1))
zsum <- condense(bin(x, 0.1), z = z)
autoplot(xsum)
autoplot(peel(xsum))
autoplot(zsum)
autoplot(peel(zsum, keep = 1))
autoplot(peel(zsum))
# 2d summaries -----------------------------
y <- runif(length(x))
xysum <- condense(bin(x, 0.1), bin(y, 0.1))
xyzsum <- condense(bin(x, 0.1), bin(y, 0.1), z = z)
autoplot(xysum)
autoplot(peel(xysum))
autoplot(xyzsum)
autoplot(peel(xyzsum))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.